某天閑的無聊想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 的嘉賓 说道 : 很久前