解决Mac os 安装软件一直卡在 Updating Homebrew
Mac os 安装软件时卡在 Updating Homebrew 的解决办法
方法一:禁用安装软件时更新homebrew
vim ~/.bash_profile # 增加如下一行 export HOMEBREW_NO_AUTO_UPDATE=true
方法二:更换 homebrew 源
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 # 备用地址1 cd "$(brew --repo)" git remote set-url origin https://git.coding.net/homebrew/homebrew.git brew update # 备用地址2 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew-core.git brew update
如果备用地址还是不行,换回官方源
#重置 brew.git cd "$(brew --repo)" git remote set-url origin https://github.com/Homebrew/brew.git #重置 homebrew-core.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://github.com/Homebrew/homebrew-core.git
相关推荐
tianyafengxin 2020-05-30
HJWZYY 2020-04-24
adc00 2020-01-24
LUCIEN0 2020-01-14
Charliewolf 2019-11-03
移动视频探索者 2019-09-06
zjc 2020-09-03
TinyDolphin 2020-07-19
tangjianft 2020-06-26
Ashes 2020-06-14
haoeng 2020-06-07
TinyDolphin 2020-05-19
jia 2020-05-15
炼金术士lee 2020-05-14
fly00love 2020-02-22
kanpiaoxue 2020-02-10
azhou 2020-01-19
阿债的方寸天地 2020-01-18