You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to uninstall Little Snitch using brew uninstall little-snitch, the operation fails due to permission errors. The uninstallation process appears to partially complete but leaves the application and daemon running, with no clear way to fully remove the software through Homebrew.
To reproduce:
Install Little Snitch using Homebrew: brew install little-snitch
Attempt to uninstall using brew uninstall little-snitch
Enter sudo password when asked
Observe result: little snitch is still running when inspected via htop, it's still installed
Rerun the uninstall: brew uninstall little-snitch
Observe the resulting message
Proposed solution:
Either fix the uninstall, or in case this is not possible, point out how to correctly uninstall (instead of attempting an uninstall that won't work). The correct way to uninstall is to move from finder to trash. This removes the system extensions, see https://help.obdev.at/littlesnitch6/intro-uninstall
Homebrew should not attempt an uninstall that it knows will fail and leaves the user confused.
Old issue (closed and locked despite not being done): #1801
Command that failed
brew uninstall little-snitch
Output of command with --verbose --debug
First uninstall:
$ brew uninstall little-snitch
==> Uninstalling Cask little-snitch
==> Backing App 'Little Snitch.app' up to '/opt/homebrew/Caskroom/little-snitch/==> Removing App '/Applications/Little Snitch.app'==> Using sudo to gain ownership of path '/Applications/Little Snitch.app'Password:chown: /Applications/Little Snitch.app/Contents/CodeResources: Operation not permitted[additional errors truncated for brevity]Error: Permission denied @ apply2files - /Applications/Little Snitch.app/Contents/CodeResources
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!Warning: Some installed formulae are deprecated or disabled.You should find replacements for the following formulae:[email protected]Warning: Unbrewed dylibs were found in /usr/local/lib.If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/liblz4.1.9.3.dylib
/usr/local/lib/libnw.0.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems whenbuilding Homebrew formulae and may need to be deleted.Unexpected header files: /usr/local/include/endian.h /usr/local/include/lz4.h /usr/local/include/lz4frame.h /usr/local/include/lz4frame_static.h /usr/local/include/lz4hc.hWarning: Unbrewed '.la' files were found in /usr/local/lib.If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.
Unexpected '.la' files:
/usr/local/lib/libnw.la
Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems whenbuilding Homebrew formulae and may need to be deleted.Unexpected '.pc' files: /usr/local/lib/pkgconfig/liblz4.pcWarning: Unbrewed static libraries were found in /usr/local/lib.If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/liblz4.a
/usr/local/lib/libnw.a
HOMEBREW_VERSION: 4.4.0-30-g3994768
ORIGIN: https://github.com/Homebrew/brew
HEAD: 39947683497c27bf6c7d6825ca0e8387613eb9d6
Last commit: 5 hours ago
Core tap HEAD: 462ae2e4289e8834890de296c3cec2177b945733
Core tap last commit: 69 minutes ago
Core tap JSON: 03 Oct 05:23 UTC
Core cask tap HEAD: 8e2c8fa28ca102b55f448aaed060e25fde1f96cb
Core cask tap last commit: 4 hours ago
Core cask tap JSON: 03 Oct 05:23 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.46.2 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: 16.0 => /Applications/Xcode-16.0.0.app/Contents/Developer
Rosetta 2: false
For Little Snitch to close when running brew uninstall, uninstall quit would need to be added to the Caskfile.
We would review a PR for this change, here's some docs - https://docs.brew.sh/Cask-Cookbook#uninstall-quit
This seems a bit more complex than using uninstall quit, as there is a network extension installed with Little Snitch and there aren't any good way to remove it. Using systemextensionsctl uninstall at.obdev.littlesnitch.networkextension requires SIP to be disabled which doesn't seem to be a good way. Without this network extension removed, the background tasks can't be killed: tried
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
When attempting to uninstall Little Snitch using
brew uninstall little-snitch
, the operation fails due to permission errors. The uninstallation process appears to partially complete but leaves the application and daemon running, with no clear way to fully remove the software through Homebrew.To reproduce:
brew install little-snitch
brew uninstall little-snitch
brew uninstall little-snitch
Proposed solution:
Either fix the uninstall, or in case this is not possible, point out how to correctly uninstall (instead of attempting an uninstall that won't work). The correct way to uninstall is to move from finder to trash. This removes the system extensions, see https://help.obdev.at/littlesnitch6/intro-uninstall
Homebrew should not attempt an uninstall that it knows will fail and leaves the user confused.
Old issue (closed and locked despite not being done): #1801
Command that failed
brew uninstall little-snitch
Output of command with
--verbose --debug
First uninstall:
This is the second uninstall:
Output of
brew doctor
andbrew config
Output of
brew tap
The text was updated successfully, but these errors were encountered: