天使漫步IT工作室天使漫步IT工作室

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


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 110

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 116

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

第一处:

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

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

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » 【亲测有效】Updating Homebrew... 长时间不动或者更新慢解决方法
添加新评论


Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /www/wwwroot/u11u.com/usr/themes/wq/comments.php on line 38