![当我进行“brew update”时,如何避免出现“未找到‘boneyard’”错误?](https://linux22.com/image/1583110/%E5%BD%93%E6%88%91%E8%BF%9B%E8%A1%8C%E2%80%9Cbrew%20update%E2%80%9D%E6%97%B6%EF%BC%8C%E5%A6%82%E4%BD%95%E9%81%BF%E5%85%8D%E5%87%BA%E7%8E%B0%E2%80%9C%E6%9C%AA%E6%89%BE%E5%88%B0%E2%80%98boneyard%E2%80%99%E2%80%9D%E9%94%99%E8%AF%AF%EF%BC%9F.png)
当我
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 untap
Darius 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.