在使用homebrew安装mactex的时候,遇到404的报错,需要更新homebrew,但是homebrew更新的太慢了,所以需要更换源,加快更新速度。
1.更换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
- 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
- 开始更新操作
brew update
最后的效果

网友评论