解决homebrew无法更新软件问题

2022-05-20  本文已影响0人  厦门第一帅哥

1. Error: Fetching /usr/local/Homebrew failed!

git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
brew update
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

2.使用cu升级

brew tap buo/cask-upgrade
brew cu -f -a
上一篇 下一篇

猜你喜欢

热点阅读