天使漫步IT工作室

【亲测有效】Updating Homebrew... 长时间不动或者更新慢解决方法

网上有一些教程没有介绍完,其实换地址需要换两处才行:

第一处:

替换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 

如果换成其他源,请自行修改前缀域名即可。

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »