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

Open
opened 2025-11-20 05:18:35 -05:00 by saavagebueno · 6 comments
Owner

Originally created by @TonyBostonTB on GitHub (May 5, 2024).

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?

Originally created by @TonyBostonTB on GitHub (May 5, 2024). 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?
saavagebueno added the triage-needed label 2025-11-20 05:18:35 -05:00
Author
Owner

@ankit-ls commented on GitHub (Jun 6, 2024):

Facing the same issue. Any workarounds for this?

@ankit-ls commented on GitHub (Jun 6, 2024): Facing the same issue. Any workarounds for this?
Author
Owner

@iggbom commented on GitHub (Jun 6, 2024):

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

@iggbom commented on GitHub (Jun 6, 2024): Have the same issue and haven’t been able to figure out a workaround.
Author
Owner

@lblazewski commented on GitHub (Jun 26, 2024):

Bumping this issue since I am seeing the same!

@lblazewski commented on GitHub (Jun 26, 2024): Bumping this issue since I am seeing the same!
Author
Owner

@twyxxywt commented on GitHub (Jun 28, 2024):

Same here. Force reinstall gave the same error.

@twyxxywt commented on GitHub (Jun 28, 2024): Same here. Force reinstall gave the same error.
Author
Owner

@twyxxywt commented on GitHub (Jun 28, 2024):

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.

@twyxxywt commented on GitHub (Jun 28, 2024): 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.
Author
Owner

@salixh5 commented on GitHub (Apr 10, 2025):

This happens to me all the time when trying to upgrade using Homebrew.

I independently came up with the same kind of work-around, just I directly used the source file at https://github.com/netbirdio/netbird/blob/main/release_files/darwin-ui-uninstaller.sh and copy-pasted the contents to /Applications/Netbird\ UI.app/uninstaller.sh (don't forget to set the execute bit).

Edit:
I think the reason for this happening: If you download the regular Netbird pkg for updating, then try to run it, it will not work and error out. After remembering that you have to update via Homebrew, the installer already removed the uninstaller.sh and therefore Homebrew update breaks unless you manually restore the file.

@salixh5 commented on GitHub (Apr 10, 2025): This happens to me all the time when trying to upgrade using Homebrew. I independently came up with the same kind of work-around, just I directly used the source file at https://github.com/netbirdio/netbird/blob/main/release_files/darwin-ui-uninstaller.sh and copy-pasted the contents to /Applications/Netbird\ UI.app/uninstaller.sh (don't forget to set the execute bit). Edit: I think the reason for this happening: If you download the regular Netbird pkg for updating, then try to run it, it will not work and error out. After remembering that you have to update via Homebrew, the installer already removed the uninstaller.sh and therefore Homebrew update breaks unless you manually restore the file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#848