0

I am trying to install Homebrew on Mac with the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 

Unfortunately, I am getting this error:

fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master

I tried many ways including:

git config --global core.compression 0
git fetch --unshallow

But they did not work. Also when I check the version of brew I got this:

Homebrew 3.4.1-9-g1447f08
Homebrew/homebrew-core (no Git repository)

It looks I have Homebrew but it doesn’t work.

Gino Mempin
  • 19,150
  • 23
  • 79
  • 104
Mursel A
  • 25
  • 1
  • 2
    Does this answer your question? [Error installing Homebrew "unexpected disconnect while reading sideband packet"](https://stackoverflow.com/questions/70303947/error-installing-homebrew-unexpected-disconnect-while-reading-sideband-packet) – Gino Mempin Mar 08 '22 at 12:52

0 Answers0