Unable to install: "fatal: the remote end hung up unexpectedly" #666
|
I'm a newbie to Homebrew, failing to install for the very first time on a new MacBook that meets macOS Requirements: I followed instructions at https://docs.brew.sh/Installation yet the install fails with error Can anyone help me, please? Terminal screen output: |
Replies: 33 comments 126 replies
|
Are you using Little Snitch? |
|
Do you already have a |
|
Bonjour je n'arrive pas non plus à l'installer ! Lorsque je fais entrer .rien ne fonctionne ... `Last login: Mon Feb 1 22:33:58 on ttys011 https://aka.ms/pscore6-docs PS /Users/Melodium> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
|
We've discussed this issue internally a little bit. There doesn't seem to be anything that we can do on our end. There have been no changes to the code involved here recently, and it's not an issue that's reproducible by the maintainers. It seems there are two options for what could be happening:
If it's the first, that's something you'll need to figure out. You can probably test this by attempting to install Homebrew while on a different network. If that doesn't seem to work, it's likely an issue on GitHub's end. There isn't much we can do to help here. The best thing you can do is open a support ticket with them. If more people are experiencing this issue, they should also open tickets. That's the best way to draw their attention to the issue. They will hopefully be able to help more than we can. |
|
Thanks for your help Rylan, understood. I am certain that it's not my internet connection, as it's 200Mb broadband over fibre network. Never had a problem downloading anything else before now. Will try GitHub. |
|
I have the exact same issue, anyone have an update regarding this? |
|
I faced this issues and it turned out my ISP (Virgin UK) provider. Using a VPN fixed it. |
|
OK, I'm not 100% if this applies to all people on this discussion. My issue turned out to be DNS related, I set my network config to Google's public 8.8.8.8 DNS. I can now install Homebrew via terminal with no issues. Was very simple in the end, hope this helps someone. |
|
I've just been wresting with this same problem and noticed that somebody else mentioned also being a Virgin Media Customer. I found that turning off the Web Safe features meant that I could install without any problem. I've sent Virgin a message explaining this. I also had to follow the advice about removing the Brew folders from /usr/local as the aborted install attempts had already created these. |
|
You won't believe how I solved this issue! ... I simply switched from |
|
Just in case anyone else is facing this issue and this doesn't work for you: Using the installation link but with an uninstall command worked for me. Like so: |
|
A summary of all the tricks I added to get this to work:
This has wasted 3 hours of my day.... All so I can use a little app to burn a ISO. FFS! |
|
I have a very similar error
But... it still doesn't work for me :-( I am getting similar error, and I have no more idea how to proceed I also check the git. Seem legit Have setup email for git Have read
But still getting the below error no matter how many times I have tried Any idea? |
|
|
I think I've figured it out! It appears to be a problem with Macs doing large downloads over 5GHz wifi bands. My home router is running 5GHz and would not work, but when I switched to my mobile hotspot which runs 2.4GHz the Homebrew installation was fast and painless. For reference, I'm using a MacBook Air with Apple M1 chip. I would be curious to see if others who have this issue are using the same hardware, and if this is unique to M1 or if it affects Intel Macs as well. Either way, looks like this will be an issue for all developers until Apple pushes a fix out. |
|
To me, it was a pure internet connection issue. Did again when the connection was more stable, worked! |
|
kinda of same problem how to solve the prob? Tapping homebrew/cask |
|
brew update-reset worked for me and then I switched my internet too. |
|
I suggest running the install script inside a rosetta 2 terminal: https://apple.stackexchange.com/questions/409746/run-everything-in-rosetta-2-on-silicon-mac This worked for me, after nothing else did. Not sure what any long-term consequences might be... 🤷 |
|
Getting this same issue on a brand new mac with no internet connection issues 😞 |
|
same issue on MBP 13, 2022, M2 |
|
Closing this discussion now as I think it's run its course. It turned out that my real issue was the ISP (Virgin Media) ... |
|
For my case, I found I cannot ping github.com in terminal (not sure about the reason; I can access github on the web without any problem) Hope this can be helpful for some. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
i tried so many methods but they are all not work . i executed the install command and just waited and finally it worked. so you can try wait for the command finished and dont control +c. Hope this information can help you . |
|
Turning off the macOS firewall fixed this for me. |
|
This is a problem with your internet connection, if it's slow you'll get this error, so try connecting to a faster network |
|
I got this on my freshly installed Sequoia, it was easy to solve by following https://stackoverflow.com/questions/48987512/ssl-connect-ssl-error-syscall-in-connection-to-github-com443 In short, running |
|
Hi @tagmanPM I ran into the same issue recently and managed to fix it. Here's what worked for me:
Then test it with: |

Closing this discussion now as I think it's run its course. It turned out that my real issue was the ISP (Virgin Media) ...