Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed

Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed

我运行brew update得到了

fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Failed to connect to 10.8.0.1 port 8080: Operation timed out

Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!

所以我有时使用具有代理的网络,所以我将以下行添加到 .bash_profile(除了通过系统偏好设置的网络设置的通常更改之外):

export http_proxy="http://10.8.0.1:8080"

export https_proxy="https://10.8.0.1:8080"

所以我认为这可能是导致问题的原因,并注释掉了这些行,使用了源。bash_profile,重新启动并使用了蜂窝网络。仍然是同样的错误。

首先移除代理。 我遇到了同样的问题。

在您的终端中尝试 运行 brew update-reset 然后 source ~/.bash_profile