Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I ran brew update and got

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!

So I sometimes use a network which has proxy, so I added the following lines to .bash_profile (apart from usual changes in network settings via system preferences):

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

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

So I thought this might be causing the problem and commented these lines out, used source .bash_profile, rebooted and used cellular network. Still the same error.

like image 416
momo Avatar asked Feb 22 '19 19:02

momo


People also ask

How do you remove a brew tap?

The brew tap command You can install and uninstall them with brew [un]install , and the formulae are automatically updated when you run brew update .

What is Homebrew tap?

Taps (Third-Party Repositories) The brew tap command adds more repositories to the list of formulae that Homebrew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.

What does Brew update reset do?

The update-reset version of this command resets all formulae to be identical to the contents of their remote repositories, deleting any local changes. It is only used as a last-resort effort to fix a problem (it's like unplugging Homebrew and plugging it back in).


1 Answers

First remove the proxy. I had the same problem.

In your terminal try running brew update-reset and then source ~/.bash_profile

like image 181
Md Junaid Alam Avatar answered Sep 28 '22 20:09

Md Junaid Alam