Homebrew 踩坑 Error: No similarly named formulae found.
Posted changsongl
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Homebrew 踩坑 Error: No similarly named formulae found.相关的知识,希望对你有一定的参考价值。
问题:
发现找不到应有的包,并且尝试dockor去诊断提示remote错误。
~ % 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.
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
但是运行修复指令之后在运行doctor还是会出现相同的问题。
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
解决办法:
cd /usr/local/Homebrew/Library/Taps/homebrew/
rm -rf homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
重新安装一次homebrew-core,完美解决。
以上是关于Homebrew 踩坑 Error: No similarly named formulae found.的主要内容,如果未能解决你的问题,请参考以下文章
踩坑实录 Android studio中关于 No cached version of **** available for of处理办法