netbird
netbird copied to clipboard
macOS: problem installing from Homebrew cask / M1 Mac Mini?
Wanted to try this out so I followed the install instructions, but it's failing. Seems to be related to wiretrustee dependency.
macOS 12.5 / M1 Mac Mini.
$ brew install netbirdio/tap/netbird
==> Downloading https://github.com/netbirdio/netbird/releases/download/v0.8.5/netbird_0.8.5_darwin_arm64.tar.gz
Already downloaded: /Users/luke/Library/Caches/Homebrew/downloads/e57146d1abdb10de1d122c8031f374f8a3a978f2d3713bb64c207b2ede0c314a--netbird_0.8.5_darwin_arm64.tar.gz
==> Installing netbird from netbirdio/tap
Warning: netbird: No available formula with the name "wiretrustee". Did you mean wiredtiger?
'conflicts_with "wiretrustee"' should be removed from netbird.rb.
Warning: No available formula with the name "wiretrustee". Did you mean wiredtiger?
==> Searching for similarly named formulae...
This similarly named formula was found:
wiredtiger
To install it, run:
brew install wiredtiger
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
$ brew install --cask netbirdio/tap/netbird-ui
==> Downloading https://github.com/netbirdio/netbird/releases/download/v0.8.5/netbird-ui_0.8.5_darwin_arm64_signed.zip
Already downloaded: /Users/luke/Library/Caches/Homebrew/downloads/764db04869eba635b474cf8c5b946c62055e3a93bdff2f25d9bd812e94c6ed4d--netbird-ui_0.8.5_darwin_arm64_signed.zip
==> Installing dependencies: netbird
==> Downloading https://github.com/netbirdio/netbird/releases/download/v0.8.5/netbird_0.8.5_darwin_arm64.tar.gz
Already downloaded: /Users/luke/Library/Caches/Homebrew/downloads/e57146d1abdb10de1d122c8031f374f8a3a978f2d3713bb64c207b2ede0c314a--netbird_0.8.5_darwin_arm64.tar.gz
Warning: netbird: No available formula with the name "wiretrustee". Did you mean wiredtiger?
'conflicts_with "wiretrustee"' should be removed from netbird.rb.
Warning: No available formula with the name "wiretrustee". Did you mean wiredtiger?
==> Searching for similarly named formulae...
This similarly named formula was found:
wiredtiger
To install it, run:
brew install wiredtiger
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Hello @luckman212 the issue is caused because you had wiretrustee installed and brew doesn't handle well conflicts.
To solve the issue you can run:
brew uninstall wiretrustee
brew install --cask netbird-ui
Thanks, but not sure that's correct...
$ brew uninstall wiretrustee
Error: No available formula with the name "wiretrustee". Did you mean wiredtiger?
$ brew info wiretrustee
Error: No available formula with the name "wiretrustee". Did you mean wiredtiger?
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
$ brew search wiretrustee
==> Formulae
wiredtiger
==> Casks
wireframe-sketcher
Thanks for reporting back. This is a bit odd, as locally (Homebrew 3.5.7), it gives a similar warning, but doesn't try to search the package and the installation continues. Could you please share your brew version?
It might help if you add the wiretrustee tap just for the sake of installation:
brew tap wiretrustee/client
brew tap netbirdio/tap
brew install --cask netbird-ui
if you see some errors similar to the ones below:
"launchctl" failed with stderr: /Library/LaunchDaemons/netbird.plist: service already loaded
It means that netbird was already installed from previous attempt
Sure
$ brew --version
Homebrew 3.5.8
Homebrew/homebrew-core (git revision daff070e3ee; last commit 2022-08-05)
Homebrew/homebrew-cask (git revision ed8e07eb85; last commit 2022-07-14)
Thank you @luckman212
I tested here with the same version, but I wasn't able to reproduce it, see output below:
maycon@Maycons-MBP-2 [19:33:19] [~]
-> % brew --version
Homebrew 3.5.8
Homebrew/homebrew-core (git revision bb4418083ce; last commit 2022-08-05)
Homebrew/homebrew-cask (git revision 52d6035354; last commit 2022-08-05)
maycon@Maycons-MBP-2 [19:33:25] [~]
-> % brew tap
filosottile/musl-cross
homebrew/cask
homebrew/core
tinygo-org/tools
maycon@Maycons-MBP-2 [19:33:31] [~]
-> % brew install --cask netbirdio/tap/netbird-ui
==> Tapping netbirdio/tap
Cloning into '/opt/homebrew/Library/Taps/netbirdio/homebrew-tap'...
remote: Enumerating objects: 108, done.
remote: Counting objects: 100% (108/108), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 108 (delta 42), reused 44 (delta 13), pack-reused 0
Receiving objects: 100% (108/108), 16.79 KiB | 716.00 KiB/s, done.
Resolving deltas: 100% (42/42), done.
Tapped 1 cask and 1 formula (14 files, 27.2KB).
==> Downloading https://github.com/netbirdio/netbird/releases/download/v0.8.5/netbird-ui_0.8.5_darwin_arm64_signed.zip
Already downloaded: /Users/maycon/Library/Caches/Homebrew/downloads/764db04869eba635b474cf8c5b946c62055e3a93bdff2f25d9bd812e94c6ed4d--netbird-ui_0.8.5_darwin_arm64_signed.zip
==> Installing dependencies: netbird
==> Downloading https://github.com/netbirdio/netbird/releases/download/v0.8.5/netbird_0.8.5_darwin_arm64.tar.gz
Already downloaded: /Users/maycon/Library/Caches/Homebrew/downloads/e57146d1abdb10de1d122c8031f374f8a3a978f2d3713bb64c207b2ede0c314a--netbird_0.8.5_darwin_arm64.tar.gz
Warning: netbird: No available formula with the name "wiretrustee". Did you mean wiredtiger?
'conflicts_with "wiretrustee"' should be removed from netbird.rb.
Please report this issue to the netbirdio/tap tap (not Homebrew/brew or Homebrew/core)!
==> Installing netbirdio/tap/netbird
🍺 /opt/homebrew/Cellar/netbird/0.8.5: 5 files, 16.7MB, built in 1 second
==> Installing Cask netbird-ui
==> Moving App 'netbird_ui_darwin_arm64' to '/Applications/Netbird UI.app'
🍺 netbird-ui was successfully installed!
maycon@Maycons-MBP-2 [19:33:50] [~]
-> % netbird version
0.8.5
maycon@Maycons-MBP-2 [19:34:01] [~]
For instance, do you have any custom brew configuration in an environment variable or similar?
Also, were you able to install following the previous steps?
I think the problem seems to be my cask repo isn't updated since 7-14-2022. Need to troubleshoot what's going on there...

Well I fixed that out of date cask repo with brew update-reset but I still can't install this. Here's my brew config... I don't think it's too out of the ordinary...
$ brew config
HOMEBREW_VERSION: 3.5.8-2-g336335a
ORIGIN: https://github.com/Homebrew/brew
HEAD: 336335abe57072d8e2720cc1f25e1afdf901a6b5
Last commit: 19 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 76a965ab6bf5cf9abf650d08e0df0fb2c09d3719
Core tap last commit: 9 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DEVELOPER: set
HOMEBREW_EDITOR: editor_subl
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_GITHUB_PACKAGES_TOKEN: set
HOMEBREW_GITHUB_PACKAGES_USER: luckman212
HOMEBREW_INSTALL_FROM_API: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_NO_INSECURE_REDIRECT: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.37.1 => /opt/homebrew/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: 13.4.1
Rosetta 2: false
$ brew --version
Homebrew 3.5.8-2-g336335a
Homebrew/homebrew-core (git revision 76a965ab6bf; last commit 2022-08-05)
Homebrew/homebrew-cask (git revision 52d6035354; last commit 2022-08-05)
I figured out the issue (partially at least). I had Homebrew developer mode enabled.
Running the command below:
$ brew developer off
...and removing the following 2 lines from my .bashrc
export HOMEBREW_DEVELOPER=1;
export HOMEBREW_INSTALL_FROM_API=1;
Has solved the issue for me. Not sure why that causes the install to fail, but...