某天闲的无聊想brew update日常更新一下,发现竟然报错了,问题如下
Someone-MacBook:~ admin$ brew update Error: homebrew-core is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience!
意思是说GitHub因为开销问题限定不许这么干,又推荐了一个命令让我先运行一个git命令来解决,于是照做,发现又报错:
Someone-MacBook:~ admin$ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow fatal: 哑 http 传输不支持 shalllow 能力
面对这个混搭的报错汉化文本笔者思索了一下,这难道就是艺术?
如何安排:使用简单的命令把homebrew的核心删了, 然后再更新, 问题解决
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core; brew update
2 楼 IP 36.63.***.26 的嘉宾 说道 : 很久前
3 楼 IP 61.135.***.202 的嘉宾 说道 : 很久前
4 楼 IP 113.46.***.63 的嘉宾 高兴地说 : 很久前
5 楼 IP 114.254.***.129 的嘉宾 说道 : 很久前