netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.57k stars 473 forks source link

[macOS] Can not upgrade Netbird-UI as homebrew is searching for an uninstall file that is not there #1924

Open TonyBostonTB opened 4 months ago

TonyBostonTB commented 4 months ago

I am trying to upgrade netbird(-ui) via homebrew but it's borked somehow, here's what I am doing.

brew uninstall --force netbird-ui
==> Uninstalling Cask netbird-ui
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory
Error: Failure while executing; `/usr/bin/env /Applications/Netbird\ UI.app/uninstaller.sh` exited with 127. Here's the output:
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory

When trying to upgrade, I get this

==> Upgrading 1 outdated package:
netbirdio/tap/netbird-ui 0.27.1 -> 0.27.4
==> Upgrading netbird-ui
...
All dependencies satisfied.
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory
==> Purging files for version 0.27.4 of Cask netbird-ui
Error: netbirdio/tap/netbird-ui: Failure while executing; `/usr/bin/env /Applications/Netbird\ UI.app/uninstaller.sh` exited with 127. Here's the output:
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory

I do not see a way around this for now. Any suggestions?

ankit-ls commented 3 months ago

Facing the same issue. Any workarounds for this?

iggbom commented 3 months ago

Have the same issue and haven’t been able to figure out a workaround.

lblazewski commented 2 months ago

Bumping this issue since I am seeing the same!

twyxxywt commented 2 months ago

Same here. Force reinstall gave the same error.

twyxxywt commented 2 months ago

I found a hacky way to fix this for me at least.

Download the latest pkg - https://github.com/netbirdio/netbird/releases/download/v0.28.3/netbird-ui_0.28.3_darwin_arm64_signed.zip

Extract it. And "uninstall.sh" is in ./netbird_ui_darwin_arm64/ folder. Copy it as /Applications/Netbird\ UI.app/uninstaller.sh. chmod +x on it.