条件: 拥有海外socket5代理服务器
先将卡死的homebrew结束掉
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
删除homebrew的锁定
rm -rf /usr/local/var/homebrew/locks
重新执行此命令
ALL_PROXY=socks5://127.0.0.1:1080 brew update
前面加上ALL_PROXY=socks5://127.0.0.1:端口 即可。 速度回非常快