[solved] Homebrew install issue

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.

Another silly thing to check is free disk space…

By the way, what OS version?

Hi RPLKTR, OS version is El Capitan 10.11.6. Lots of free space. Have tried cloning repo manually with similar problems.

That’s quite vintage now. The Git version that you have might be too old for GitHub now. There were some security vulnerabilities in the past 5 years.

Try updating the Xcode Command Line Tools. If that doesn’t help, get Git from the GitHub Desktop app: https://desktop.github.com/

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

Sure thing! Try the accepted answer here, too: https://stackoverflow.com/questions/60878838/git-rpc-failed-curl-18-transfer-closed-with-outstanding-read-data-remaining

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

4 Likes

Awesome. Feel free to DM me if you ever want support. :slight_smile:

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?

oh no! what prints to terminal as you run into trouble?

2 Likes

ahh hey dan i was just dming you :relieved:

1 Like

closing the loop!

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!

2 Likes

Just adding to this topic as I found the the M1 homebrew jump to be one of the realest things to ever happen to me.

Installing homebrew into /opt/homebrew

/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa/raw/48f48f7fef21abb308e129a80b3214c2538fc611/homebrew_m1.sh)"

The above typed into a fresh Terminal window will fly you passed some of the Next steps I couldn’t figure out on my own.

Sources:

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.

hi everyone,

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.

any ideas would be very helpful! thank you!

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.

1 Like

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.

Thanks for helping!

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.

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/ptbls/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
1 Like

Thanks for a bit of hand holding to get me through that…everything is working now!

2 Likes