I am struggling to install Homebrew so that I can then install the dfu-programmer to update my teletype firmware.
I get the following message:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core exited with 128.
Error: Failure while executing; /usr/local/bin/brew tap homebrew/core exited with 1.
Failed during: /usr/local/bin/brew update --force
I get about 33% of the way through transferring the objects before the clone fails. My broadband speed seems fine.
Has anyone else encountered this issue and managed to resolve it? Your help would be appreciated.
Try downloading any big file to confirm your network isn’t at fault. In fact, you can just try to clone the git repo in question manually and see if that works. This looks like a limited network. I had issues like these on trains and in hotels in the past.
Oh man I had some nightmare like this with either npm or homebrew on El Capitan, too. +1 for Xcode Command Line Tools. To @RPLKTR’s point, can you run git --version and brew --version and share what you see?
I successfully installed dfu-programmer with brew with these versions on Catalina 10.15.4.
That stackoverflow link helped. Added github to the list of trusted sites in my firewall and everything downloaded - have the dfu-programmer now and teletype updated to latest firmware - thanks for you help
i advise against executing shell scripts blindly like this. i read through it and it looks ok - for now - but it could do some damage. i’m not even raising the specter of malicious actors here, but just pointing out doing things to your computer as sudo which you may not fully be aware of can lead to even more frustration. example: this one only fully works if you’re on zsh.
tl;dr — always read scripts like these step by step before executing.
just curious but what was difficult about the M1 homebrew jump? the instructions on https://brew.sh worked for me whenever i’ve had to do it.
Thank you for helping me overcome the most basic hurdle. Unfortunately, I’ve encountered another one and can’t make sense of how to get over it. Probably the answer is obvious like the previous one, only its totally invisible to me.
Ahh, it looks like you have a problem where you have mistyped rather badly when you ought to have copied and pasted. Be careful! The shell is a wonderful place, but it won’t hold your hand. It would have been better to copy and paste by clicking and dragging over the relevant text.
Anyway the dquote is saying there’s a double quote symbol in what you’ve typed that was never closed. To get out of this in normal situations, you can either type the closing double quote and press enter or press Ctrl-C (that’s control and C together). I would rather you chose the latter in this case, just to be careful.
Now, copy each line of the following one by one and paste it into your terminal rather than relying on retyping.