brew install telnet报错如下
fatal: not in a git directory
Error: Command failed with exit 128: git
解决过程:
x@y ~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Suspicious https://github.com/Homebrew/brew git origin remote found.
The current git origin is:
https://mirrors.ustc.edu.cn/brew.git
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/opt/homebrew" remote set-url origin https://github.com/Homebrew/brew
Warning: Homebrew/homebrew-cask was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"
brew tap homebrew/cask
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
hongling.ruan@HRUAN1ML1 ~ % brew install --debug ets
Warning: No available formula with the name "ets". Did you mean etsh, etl, ots or gts?
根据warning运行命令重新brew install成功