[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