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.
Thanks for the responses - I updated the Command Line Tools last night but this didn’t help - will try your other suggestions later today and report back
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
hey @tyleretters - i’m having some trouble installing homebrew in order to update the firmware on my crow…wondering if you could help me out with this?
if homebrew doesn’t install on a machine with older MacOS versions (@claasp was forced back to El Cap), try installing MacPorts instead. since all you need is dfu-util, either works.
once MacPorts is installed, execute this command in Terminal:
port install libusb dfu-util
if it complains about priveleges, try:
sudo port install libusb dfu-util
and enter your password.
successful install looks like this
sudo port install libusb dfu-util
Password:
—> Fetching archive for libusb
—> Attempting to fetch libusb-1.0.24_0.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libusb
—> Attempting to fetch libusb-1.0.24_0.darwin_15.x86_64.tbz2.rmd160 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libusb
—> Installing libusb @1.0.24_0
—> Activating libusb @1.0.24_0
—> Cleaning libusb
—> Computing dependencies for dfu-util
—> Fetching archive for dfu-util
—> Attempting to fetch dfu-util-0.9_0.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/dfu-util
—> Attempting to fetch dfu-util-0.9_0.darwin_15.x86_64.tbz2.rmd160 from https://ywg.ca.packages.macports.org/mirror/macports/packages/dfu-util
—> Installing dfu-util @0.9_0
—> Activating dfu-util @0.9_0
—> Cleaning dfu-util
—> Updating database of binaries
—> Updating database of C++ stdlib usage
—> Scanning binaries for linking errors
—> No broken files found.
—> No broken ports found.
then you should be able to reflash your crow! ^^ caw caw!
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.
i’m having trouble installing homebrew on a mac m2. i’ve installed xcode but that hasn’t made any difference so far.
when i put the command from homebrew into terminal i just get this and i can’t enter a password into or type anything. it’s kind of just stuck there until i press enter three time and it resets.
ah, something that’s not intuitive about the terminal is that the password does not appear as you type it. so you can and should type your password into that field before pressing enter.
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.