当我进行“brew update”时,如何避免出现“未找到‘boneyard’”错误?

当我进行“brew update”时,如何避免出现“未找到‘boneyard’”错误?

当我

brew update

我明白了

remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-boneyard/' not found
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard failed!

我该如何解决?


细节:

$brew update -v
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-python...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/wix/homebrew-brew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard...
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-boneyard/' not found
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard failed!
Updating /usr/local/Homebrew...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.
Switched to and reset branch 'stable'
Current branch stable is up to date.

答案1

您可以“取消”以删除已弃用的来源:

brew untap homebrew/boneyard

但我不知道是否有其他来源homebrew/boneyard

答案2

我遇到了类似的问题,发现brew untapDarius M. 的解决方案有效。

关于 github 的错误消息具有误导性,应忽略(希望开发人员将其删除)。这全是关于弃用的来源:

% brew update
fatal: could not read Username for 'https://github.com': terminal prompts disabled
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-x11 failed!
To restore the stashed changes to /usr/local/Homebrew run:
  'cd /usr/local/Homebrew && git stash pop'
...

解决方案:对于每个失败的源,brew untap按如下方式运行:

% brew untap homebrew/homebrew-dupes
Untapping homebrew/dupes...
Untapped (335 files, 437.1KB).
% brew untap homebrew/homebrew-x11
Untapping homebrew/x11...
Untapped (309 files, 288.4KB).

不再有错误:

% brew update                       
Already up-to-date.

相关内容