[GH-ISSUE #5135] Homebrew cannot install after clean uninstall #10779

Open
opened 2026-08-05 01:27:15 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @clarkmcc on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5135

Describe the problem

Home brew installer doesn't work when there's a previous installation even when I follow the documentation steps to uninstall.

To Reproduce

$ which netbird
netbird not found

$ sudo netbird service stop
$ sudo netbird service uninstall
sudo: netbird: command not found
sudo: netbird: command not found

$ brew unlink netbird
Error: No such keg: /opt/homebrew/Cellar/netbird

$ brew install --cask netbirdio/tap/netbird-ui
==> Auto-updating Homebrew...
Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with
`$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Fetching downloads for: netbirdio/tap/netbird-ui
✔︎ Cask netbird-ui (0.63.0)                                                                                                                                       Verified     15.4MB/ 15.4MB
==> Fetching downloads for: netbirdio/tap/netbird-ui
✔︎ Cask netbird-ui (0.63.0)                                                                                                                                       Verified     15.4MB/ 15.4MB
==> Upgrading 1 outdated package:
netbirdio/tap/netbird-ui 0.60.4 -> 0.63.0
==> Upgrading netbird-ui
==> Installing dependencies: netbird
==> Fetching downloads for: netbird
✔︎ Formula netbird (0.63.0)                                                                                                                                       Verified     11.3MB/ 11.3MB
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Settings.

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 16.4.



This is a Tier 2 configuration:
  https://docs.brew.sh/Support-Tiers#tier-2
You can report Tier 2 unrelated issues to Homebrew/* repositories!
Read the above document before opening any issues or PRs.

==> Installing netbirdio/tap/netbird
🍺  /opt/homebrew/Cellar/netbird/0.63.0: 6 files, 30.9MB, built in 1 second
env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory
==> Purging files for version 0.63.0 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

Expected behavior

I'd expect to be able to install it.

Originally created by @clarkmcc on GitHub (Jan 19, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5135 **Describe the problem** Home brew installer doesn't work when there's a previous installation even when I follow the documentation steps to uninstall. **To Reproduce** ```bash $ which netbird netbird not found $ sudo netbird service stop $ sudo netbird service uninstall sudo: netbird: command not found sudo: netbird: command not found $ brew unlink netbird Error: No such keg: /opt/homebrew/Cellar/netbird $ brew install --cask netbirdio/tap/netbird-ui ==> Auto-updating Homebrew... Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with `$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`). ==> Fetching downloads for: netbirdio/tap/netbird-ui ✔︎ Cask netbird-ui (0.63.0) Verified 15.4MB/ 15.4MB ==> Fetching downloads for: netbirdio/tap/netbird-ui ✔︎ Cask netbird-ui (0.63.0) Verified 15.4MB/ 15.4MB ==> Upgrading 1 outdated package: netbirdio/tap/netbird-ui 0.60.4 -> 0.63.0 ==> Upgrading netbird-ui ==> Installing dependencies: netbird ==> Fetching downloads for: netbird ✔︎ Formula netbird (0.63.0) Verified 11.3MB/ 11.3MB Warning: A newer Command Line Tools release is available. Update them from Software Update in System Settings. If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 16.4. This is a Tier 2 configuration: https://docs.brew.sh/Support-Tiers#tier-2 You can report Tier 2 unrelated issues to Homebrew/* repositories! Read the above document before opening any issues or PRs. ==> Installing netbirdio/tap/netbird 🍺 /opt/homebrew/Cellar/netbird/0.63.0: 6 files, 30.9MB, built in 1 second env: /Applications/Netbird UI.app/uninstaller.sh: No such file or directory ==> Purging files for version 0.63.0 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 ``` **Expected behavior** I'd expect to be able to install it.
saavagebueno added the triage-needed label 2026-08-05 01:27:15 -04:00
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#10779