objective-see / LuLu

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

Unable to update or uninstall Lulu using homebrew on latest macos #475

Open Universal-Igloo opened 2 years ago

Universal-Igloo commented 2 years ago

Every time I run the brew update command or brew uninstall command it gives the same error for the past month -

sudo: unable to execute /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller: Bad CPU type in executable Error: Failure while executing;/usr/bin/sudo -E -- /Applications/LuLu.app/Contents/Resources/LuLu\ Uninstaller.app/Contents/MacOS/LuLu\ Uninstaller -uninstallexited with 1. Here's the output: sudo: unable to execute /Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller: Bad CPU type in executable

This needs to be fixed because normally I would just uninstall from home-brew and install via the dmg directly, but in this case it doesn't even permit an uninstallation and hence shows me an error ever day when my homebrew updates, thus causing a nuisance.

Hoping you can help!

Q1ingChengxxxx commented 2 years ago

Same problem, same error in brew uninstall

Universal-Igloo commented 1 year ago

Hi! The issue persists after months and is making home-brew unusable for us because every single time we use homebrew for anything it gives an error due to Lulu.

This is a serious issue, can you please help?

QrchackOfficial commented 1 year ago

/Applications/LuLu.app/Contents/Resources/LuLu Uninstaller.app/Contents/MacOS/LuLu Uninstaller: Bad CPU type in executable

It's quite straightforward. The offending binary is Lulu Uninstaller, and I bet you're running on a M1 Mac. Most likely they need to update LuLu to include a M1 compatible build of the uninstaller.

xjmzx commented 10 months ago

Having this problem on 14.0 M1.

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

Error is produced running brew update && brew upgrade after previously trying to uninstall the cask.

thedanielfactor commented 10 months ago

I have been dealing with this for a while now and I finally figured out a way to get it removed and reinstalled. I know this is not ideal but it will at least get you moving again.

  1. Install the latest LuLu from the download link on the Objective-see website as the brew upgrade has likely removed it. You will need this as the brew remove will try to run the uninstall script from /Applications/LuLu.app

  2. in your terminal do brew remove lulu

This will remove the brew reference and the application you just installed in /Applications. You should now be able to install it again either through the newly downloaded file or through brew again.

mikalcallahan commented 10 months ago

I have been dealing with this for a while now and I finally figured out a way to get it removed and reinstalled. I know this is not ideal but it will at least get you moving again.

  1. Install the latest LuLu from the download link on the Objective-see website as the brew upgrade has likely removed it. You will need this as the brew remove will try to run the uninstall script from /Applications/LuLu.app
  2. in your terminal do brew remove lulu

This will remove the brew reference and the application you just installed in /Applications. You should now be able to install it again either through the newly downloaded file or through brew again.

Just had this issue with updating Lulu and this seemed to have worked. Thanks!