在用brew安装新的软件的时候一直出现:

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 

 

相关文章:

  • 2021-07-13
  • 2022-01-14
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-02-24
相关资源
相似解决方案