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

Open
opened 2026-08-05 00:54:08 -04:00 by saavagebueno · 8 comments
Owner

Originally created by @TonyBostonTB on GitHub (May 5, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1924

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). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1924 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 2026-08-05 00:54:08 -04:00
Author
Owner

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

Facing the same issue. Any workarounds for this?

<!-- gh-comment-id:2151481750 --> @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.

<!-- gh-comment-id:2151564154 --> @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!

<!-- gh-comment-id:2191186606 --> @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.

<!-- gh-comment-id:2197076999 --> @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.

<!-- gh-comment-id:2197215569 --> @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.

<!-- gh-comment-id:2794950876 --> @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.
Author
Owner

@arthur-lbchn commented on GitHub (Dec 10, 2025):

It's still not fixed, any reasons why?

==> Fetching downloads for: netbirdio/tap/netbird-ui
✔︎ Cask netbird-ui (0.60.7)                                                                                                                                 [Verifying    15.1MB/ 15.1MB]
==> Upgrading 1 outdated package:
netbirdio/tap/netbird-ui 0.52.2 -> 0.60.7
==> Upgrading netbird-ui
All dependencies satisfied.
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory
==> Purging files for version 0.60.7 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
<!-- gh-comment-id:3636430259 --> @arthur-lbchn commented on GitHub (Dec 10, 2025): It's still not fixed, any reasons why? ``` ==> Fetching downloads for: netbirdio/tap/netbird-ui ✔︎ Cask netbird-ui (0.60.7) [Verifying 15.1MB/ 15.1MB] ==> Upgrading 1 outdated package: netbirdio/tap/netbird-ui 0.52.2 -> 0.60.7 ==> Upgrading netbird-ui All dependencies satisfied. env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory ==> Purging files for version 0.60.7 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 ```
Author
Owner

@salixh5 commented on GitHub (Dec 12, 2025):

It's still not fixed, any reasons why?

The problem is that you deleted the uninstaller.sh by yourself when trying to run the pkg installer before trying to update through Homebrew as I explained above. What would you suggest Homebrew should do to alleviate this?

<!-- gh-comment-id:3648317187 --> @salixh5 commented on GitHub (Dec 12, 2025): > It's still not fixed, any reasons why? The problem is that you deleted the uninstaller.sh by yourself when trying to run the pkg installer before trying to update through Homebrew as I explained above. What would you suggest Homebrew should do to alleviate this?
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#3754