Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew fatal: early EOF

Tags:

homebrew

I'm trying to install Homebrew on MacOS Catalina.

After running the command on their official webpage I'm getting the following error.

==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
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
like image 734
Vini Bettega Avatar asked Mar 02 '20 19:03

Vini Bettega


1 Answers

I was having the same problem with the Mac M1 Big Sur.

The comment above was a big help.

Step 1:

sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Step 2:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then it failed.

Step 3:

cd /opt/homebrew/library/taps/homebrew 

Step 4:

sudo rmdir homebrew-core

Step 5:

git clone https://github.com/Homebrew/homebrew-core /opt/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

I also logged into Github on the browser, not sure if that mattered.

like image 96
Richard Turner Avatar answered Oct 03 '22 22:10

Richard Turner