I have no problem accessing websites through the browser, including github. However, all of a sudden brew returns host resolution errors.
Anything I can do to investigate what's causing it?
$ brew update
fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/caskroom/homebrew-cask/': Could not resolve host: github.com
Error: Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Fetching /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask failed!
probably a system/networking error. i don't think brew can do much about it. Can you ping github.com?
Possible that DNS isn't working and browser is just using its cache.
@wadkar I have the same issue, since today (was working yesterday). I can ping github.com, and curl connects to github.com properly, from the same shell environment where I'm running brew.
Updating fails with the same logs as in the OP. Installation also fails when it tries to connect to github.com:
$ brew cask install atom
==> Satisfying dependencies
complete
==> Downloading https://github.com/atom/atom/releases/download/v1.11.2/atom-mac.zip
curl: (6) Could not resolve host: github.com
Error: Download failed on Cask 'atom' with message: Download failed: https://github.com/atom/atom/releases/download/v1.11.2/atom-mac.zip
The incomplete download is cached at /Users/underyx/Library/Caches/Homebrew/Cask/atom--1.11.2.zip.incomplete
probably a system/networking error. i don't think brew can do much about it.
This, unfortunately. Homebrew can't do anything.
probably a system/networking error. i don't think brew can do much about it.
This, unfortunately. Homebrew can't do anything.
What could cause such an error for two people at the same time while being
unreproducible outside Homebrew? Maybe the issue is somehow with ruby?
On Wed, Nov 2, 2016, 7:13 PM Mike McQuaid [email protected] wrote:
probably a system/networking error. i don't think brew can do much about
it.This, unfortunately. Homebrew can't do anything.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/1414#issuecomment-257952192, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABAuVMGWIYn7_jhjJHGnfED4p_Em5LbXks5q6NLUgaJpZM4Kkk_7
.
@underyx Any number of issues with ISP, DNS providers, proxy providers, etc.
I, too, just had this problem start all of a sudden within the past few days. It's definitely not Homebrew as mentioned above; I ended up doing
git config --global --unset http.proxy
git config --global --unset https.proxy
and then restarting my term session and it works again
@danielsdesk Thank you so much, I had the exact same issue today, your fix resolved this problem.
Most helpful comment
I, too, just had this problem start all of a sudden within the past few days. It's definitely not Homebrew as mentioned above; I ended up doing
and then restarting my term session and it works again