objective-see / LuLu

LuLu is the free macOS firewall
GNU General Public License v3.0
9.69k stars 452 forks source link

Error: lulu: uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller does not exist. #586

Open avatar-lavventura opened 7 months ago

avatar-lavventura commented 7 months ago

OS: macOS Monterey Version 12.7.3


When I try to install lulu@2.6.2 I get following error Error: lulu: uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller does not exist. :

Already up-to-date.
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
lulu 2.5.1 -> 2.6.2
==> Upgrading lulu
==> Downloading https://github.com/objective-see/LuLu/releases/download/v2.6.2/LuLu_2.6.2.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/103010090/6cae65c4-bf38-48cc-a863-c871b5d6ccc8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Am
############################################################################################################################################################################### 100.0%
==> Running uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller
==> Purging files for version 2.6.2 of Cask lulu
Error: lulu: uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller does not exist.
Removing: /Users/alper/Library/Caches/Homebrew/Cask/lulu--2.6.2.dmg... (9.6MB)

I was able to use previous versions. How can I fix this error?

amarendra commented 7 months ago

Yeah, this doesn't look normal. It removes and then looks for what it removed. I faced the same issue. So my guess is it just wiped out all the settings I had. Interesting.

 ==> Running uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller
Password:
LULU: performing full 'uninstall' logic
LULU: waiting for 'kextcache' to complete
LULU: uninstall ok!
...reboot to complete

==> Purging files for version 2.6.2 of Cask lulu
Error: lulu: It seems the App source '/Applications/LuLu.app' is not there.

and then same error if I try to upgrade brew again:

==> Upgrading 1 outdated package:
lulu 2.5.1 -> 2.6.2
==> Upgrading lulu
==> Downloading https://github.com/objective-see/LuLu/releases/download/v2.6.2/LuLu_2.6.2.dmg
Already downloaded: /Users/amar/Library/Caches/Homebrew/downloads/00077e2852baa572bf5df9ac72c07153eb2bb15175f5cb852bb534f83aef2058--LuLu_2.6.2.dmg
==> Running uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller
==> Purging files for version 2.6.2 of Cask lulu
Error: lulu: uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller does not exist.

Does it have something to do with @homebrew by any chance?

objective-see commented 7 months ago

Yes - this is an issue with the cask (that was not written by me). That uninstaller is for v1.* (only) ...and yes, it will, as its name implies fully uninstall LuLu.

As LuLu uses a network extension (which is off an running as a separate process), you can't just kill/delete the app :\ I've added a commandline interface, that exports -install -upgrade & -uninstall ....so that LuLu will handle this all for your nicely and cleanly ...and for example, on an upgrade, won't delete your settings/rules.

...but seems like homebrew can't actually run stuff? soooo 🤷🏻‍♂️

amarendra commented 7 months ago

Yeah. Seems this is the problem https://github.com/Homebrew/homebrew-cask/issues/166180 which was linked from https://github.com/objective-see/LuLu/issues/581.

Time to remove lulu and some other critical apps (like lulu, @borgbase/vorta) from brew/cask and install/upgrade them independently.

avatar-lavventura commented 7 months ago

@amarendra How can we remove LuLu from brew/cask?