objective-see / BlockBlock

BlockBlock provides continual protection by monitoring persistence locations.
GNU General Public License v3.0
626 stars 39 forks source link

Failed to uninstall with Homebrew #22

Closed beatak closed 1 year ago

beatak commented 3 years ago

I have BlockBlock 1.0.2 on Big Sur (11.1) on Intel. The following happens whether if BlockBlock is running or not. Any suggestions?

% brew uninstall blockblock
==> Uninstalling Cask blockblock
==> Running uninstall script /usr/local/Caskroom/blockblock/1.0.2/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer
2020-12-24 13:31:39.150 BlockBlock Installer[25447:951545] Sentry Started -- Version: 3.12.4
INFO : KSCrash.m (339): -[KSCrash sendAllReportsWithCompletion:]: Sending 0 crash reports
No matching processes were found

BLOCKBLOCK ERROR: uninstall failed

Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/Caskroom/blockblock/1.0.2/BlockBlock\ Installer.app/Contents/MacOS/BlockBlock\ Installer -uninstall` exited with 255. Here's the output:
2020-12-24 13:31:39.150 BlockBlock Installer[25447:951545] Sentry Started -- Version: 3.12.4
INFO : KSCrash.m (339): -[KSCrash sendAllReportsWithCompletion:]: Sending 0 crash reports
No matching processes were found

BLOCKBLOCK ERROR: uninstall failed
aerickson commented 1 year ago

An old thread and maybe more of a homebrew issue, but I encountered this and the following got my installation working again:

rm -rf /usr/local/Caskroom/blockblock

# kill any old processes
ps -ef |  grep -i blockblock
# `sudo kill <PID>` if any processes found

brew reinstall blockblock
beatak commented 1 year ago

I fixed it but forgot how. I think ☝️ should work.