发现可疑的https://github.com/Homebrew/brew git origin远程 [英] Suspicious https://github.com/Homebrew/brew git origin remote found
问题描述
问题的症状如下:
~ % brew install htop
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 2 casks.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "htop".
==> 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.
无论我尝试安装什么,都找不到.所以我跑了酿酒医生
No matter what I try to install it can't find it. So I ran brew doctor
Warning: Suspicious https://github.com/Homebrew/homebrew-core git origin remote found.
The current git origin is:
https://github.com/Homebrew/brew
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core
之后
git -C"/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core";远程设置URL来源https://github.com/Homebrew/homebrew-core
然后又跑了酿酒医生,得到了
and then ran brew doctor again and got
Warning: Suspicious https://github.com/Homebrew/brew git origin remote found.
The current git origin is:
https://github.com/Homebrew/homebrew-core
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew
,因此我运行了命令 git -C"/usr/local/Homebrew";远程设置URL来源https://github.com/Homebrew/brew
然后再次运行酿造医生,并获得了第一个结果.
and then ran brew doctor again and got the first results.
有什么想法可能有问题吗?
Any thoughts on what could be wrong?
推荐答案
我在全新安装的自制软件上也遇到了上述错误.我执行了以下操作,并修复了警告:
I also encountered the above error on a fresh install of homebrew. I did the following and it fixed the warning:
cd /usr/local/Homebrew/Library/Taps/homebrew/
rm -rf homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
现在,酿造医生
现在给出了您的系统已准备好酿造
.
希望这对您也有用!
这篇关于发现可疑的https://github.com/Homebrew/brew git origin远程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!