%20%E7%84%A1%E6%B3%95%E9%80%A3%E6%8E%A5%E5%88%B0%E4%BC%BA%E6%9C%8D%E5%99%A8.png)
突然之間,我brew
根本無法彎腰或跑步。我沒有啟用任何代理,只是在家庭網路上運行我的個人 Mac。我該如何調試/解決這個問題?
scutil -r google.com ✔ 22:33:48
Reachable
curl google.com ✔ 22:34:56
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
==> Downloading https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.3_2/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
curl: (7) Couldn't connect to server
Error: Failed to download https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz and https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.3_2/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz!
Do not file an issue on GitHub about this; you will need to figure out for
yourself what issue with your internet connection restricts your access to
both Bintray (used for Homebrew bottles/binary packages) and GitHub
(used for Homebrew updates).
Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!
答案1
使用以下選項獲得更詳細的輸出-v
:
curl -v google.com
這應該可以幫助您找出問題所在。
答案2
我對此進行了大量調試。觀察 lulu 中的出站流量,分析網誌和curl 的詳細輸出。不知道為什麼會失敗。 Brew 也失敗了。我升級到大蘇爾,一切都修復了。
答案3
有類似的問題。
更新所有內容後修復:
brew install curl