Description: Use bettercap-ui package. We packaged the bettercap-ui so remove the install/update function for UI and use the correct path to UI:/usr/share/bettercap. Author: Sophie Brun Origin: Kali Linux, https://gitlab.com/kalilinux/packages/bettercap/-/raw/b97175cfd96369ca42aa931ac08eba81444586f4/debian/patches/dont-update-install-ui.patch Forwarded: not-needed Reviewed-By: Francisco Vilmar Cardoso Ruviaro Last-Update: 2026-04-15 --- a/modules/ui/ui.go +++ b/modules/ui/ui.go @@ -34,7 +34,7 @@ func getDefaultInstallBase() string { if runtime.GOOS == "windows" { return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap") } - return "/usr/local/share/bettercap/" + return "/usr/share/bettercap/" } func NewUIModule(s *session.Session) *UIModule { @@ -43,8 +43,8 @@ func NewUIModule(s *session.Session) *UI client: github.NewClient(nil), } - mod.AddParam(session.NewStringParameter("ui.basepath", - getDefaultInstallBase(), +/* mod.AddParam(session.NewStringParameter("ui.basepath", + "/usr/share/bettercap/", "", "UI base installation path.")) @@ -60,10 +60,11 @@ func NewUIModule(s *session.Session) *UI })) mod.AddHandler(session.NewModuleHandler("ui.update", "", - "Download the latest available version of the UI and install it.", + "Disable in Debian. Install the package bettercap-ui", func(args []string) error { return mod.Start() })) +*/ return mod } @@ -73,7 +74,7 @@ func (mod *UIModule) Name() string { } func (mod *UIModule) Description() string { - return "A module to manage bettercap's UI updates and installed version." + return "A module to manage bettercap's UI. Disabled in Debian: use apt install bettercap-ui to install and/or update ui." } func (mod *UIModule) Author() string {