Home > other >  Error installing HomeBrew unexpected disconnect while reading sideband packet
Error installing HomeBrew unexpected disconnect while reading sideband packet

Time:12-11

Tried installing homebrew on the M1 Mac Mini using command /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" as it is on the docs.

Then mid-way got this error

==> Tapping homebrew/core
remote: Enumerating objects: 1107077, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (157/157), done.
error: 545 bytes of body are still expected.44 MiB | 341.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
myuser~ % 

not sure why,

CodePudding user response:

This is more of github checkout issue rather than Homebrew issue, checkout this suggestion:

It might be your network issue. If the network is too slow, then it might disconnect connection unexpectedly.

If you are having a good internet and still getting this message then it might be an issue with post buffer. You can resolve it by executing the following command in your cmd.

git config --global http.postBuffer 157286400

  • Related