You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not resolve host: github.com, but I can access it without problem #1414
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
and then restarting my term session and it works again
Reacted by Clint Checketts, Denis Kazimirov, Cesar Palafox Garza, Sam Atman, Stephen Chiang, Hugo Rodger-Brown, planetoid, Jaime Agudo, Elian Myftiu, Zaki and 15 more
Reacted by Denis Kazimirov, Cesar Palafox Garza, Will Newman, Zaki, Archer Zhang, Shams Ali, Michael Young and Lamour
Activity
wadkar commentedon Oct 31, 2016
probably a system/networking error. i don't think
brewcan do much about it. Can youping github.com?Possible that DNS isn't working and browser is just using its cache.
underyx commentedon Nov 2, 2016
@wadkar I have the same issue, since today (was working yesterday). I can ping github.com, and
curlconnects 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:
MikeMcQuaid commentedon Nov 2, 2016
This, unfortunately. Homebrew can't do anything.
MikeMcQuaid commentedon Nov 2, 2016
This, unfortunately. Homebrew can't do anything.
underyx commentedon Nov 2, 2016
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:
MikeMcQuaid commentedon Nov 2, 2016
@underyx Any number of issues with ISP, DNS providers, proxy providers, etc.
danielsdesk commentedon Nov 8, 2016
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
samplenull commentedon Dec 2, 2016
@danielsdesk Thank you so much, I had the exact same issue today, your fix resolved this problem.