感谢ustc

brew 以及 homebrew-core

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

bottles

# 对于bash用户:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

# 对于zsh用户
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc

重置

# 重置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

标签: none

仅有一条评论

  1. Chen Chen

    用vultr搭建ss,这几天几个ip都上不去网了,shadowsocks日志显示操作过程中出现异常,结果无效。 有关异常的详细信息,请查看 InnerException。 ---> System.Net.WebException: 基础连接已经关闭: 发送时发生错误。 ---> System.IO.IOException: 由于远程方已关闭传输流,身份验证失败。
    在 System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
    在 System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
    在 System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

    后面就是time out, 问了vultr客服,在国外ping的通,我电脑查ping,是超时
    请问老高这个咋整

添加新评论