Brew发现自动更新homebrew时卡住

Brew发现自动更新homebrew时卡住

博客说明git

文章所涉及的资料来自互联网整理和我的总结,意在于我的学习和经验汇总,若有什么地方侵权,请联系本人删除,谢谢!

缘由

由于我以前换过源,换成了是阿里的源,而后阿里的源没有cask,因此出错在这里学习

image-20200717230222764

解决

换成中科大的源url

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

// 替换homebrew-cask.git:
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask 
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

更新源spa

brew update

以后再次安装就解决了问题code

感谢blog

百度百科

以及勤劳的本身homebrew

相关文章
相关标签/搜索