2

I tried installing Homebrew on the M1 Mac Mini using the 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~ % 
Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
Clinton
  • 435
  • 1
  • 4
  • 13

1 Answers1

6

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

chenrui
  • 8,910
  • 3
  • 33
  • 43