brew install fails downloading from ghcr.io - macOS Mojave #1419
-
|
On one of the 2 macOS Mojave systems I have, several For example, here's an attempt on the computer where it fails: Some other |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 62 replies
-
|
BTW, i had been using home-brew for a while and never ran into that issue before. |
Beta Was this translation helpful? Give feedback.
-
|
Try your If it still doesn't work, please post the output of |
Beta Was this translation helpful? Give feedback.
-
|
ok, i'm back looking at this problem again while I have a little bit of time.
|
Beta Was this translation helpful? Give feedback.
-
|
Do you have a proxy configured in your macOS network settings? This has tripped me up in the past since the proxy settings are different for system vs. shell.
… On May 7, 2021, at 4:36 PM, Pierre Rouleau ***@***.***> wrote:
ok, i'm back looking at this problem again while I have a little bit of time.
Rebooting did not fix the issue.
From bash shell, if I ping ghcr.io it pings 140.82.113.33 which responds the pings.
I tried macOS Network Utility application, and used the Lookup tab to look up ghcr.io: it returns 140.82.114.34.
That's a different address! Why would these 2 things not use the same???
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
|
What's the output of ? |
Beta Was this translation helpful? Give feedback.
-
|
OK, I built curl from source, using Microsoft vcpkg using the info here I now have: However that does not change anything for home-brew: I still have the same failure: However, If i try the curl -Liv -H.... I get: |
Beta Was this translation helpful? Give feedback.
-
|
In the end my problem was caused by my system curl.
and my new curl to use Then added: And now Homebrew is working again. I still don't know why my system curl does not work, but at least I can now use Homebrew. Thanks to everyone that answered!! |
Beta Was this translation helpful? Give feedback.
-
|
Well, happened to me. I think it started around the upgrade to 15.3.1 (24D70) sequoia. You can find a prebuilt binary for curl here https://github.com/stunnel/static-curl/releases/tag/8.12.1 Other options are enumerated on the curl website - https://curl.se/download.html#MacOSX Then you can do the brew install curl as described above. I set HOMEBREW_CURL_PATH in ~/Library/Preferences/homebrew/brew.env |
Beta Was this translation helpful? Give feedback.
-
|
If that happens on a modern macOS there is something seriously broken in your system |
Beta Was this translation helpful? Give feedback.
-
|
It started happening for me as well, macOS 15.3.2. |
Beta Was this translation helpful? Give feedback.
In the end my problem was caused by my system curl.
and my new curl to use
brew install curlto get curl from Homebrew.Then added:
export HOMEBREW_FORCE_BREWED_CURL=1in my environment setup to force Hombrew to use that new curl.And now Homebrew is working again. I still don't know why my system curl does not work, but at least I can now use Homebrew.
Thanks to everyone that answered!!