Brew Core Installation failed - Mac Latest OS

Hi Team,

Mac OS - 10.15.6
XCode Vesrion - 12.0

I need to install brew in my mac, I used the below command

/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

I’m getting the below error.


p@Vigneshs-MBP ~ % /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

Password:

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following new directories will be created:

/usr/local/share/zsh

/usr/local/share/zsh/site-functions

/usr/local/Cellar

/usr/local/Caskroom

==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/mkdir -p /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/Cellar /usr/local/Caskroom

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/Cellar /usr/local/Caskroom

==> /usr/bin/sudo /usr/sbin/chown vp /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/Cellar /usr/local/Caskroom

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/Cellar /usr/local/Caskroom

==> /usr/bin/sudo /bin/mkdir -p /Users/vp/Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Users/vp/Library/Caches/Homebrew

==> /usr/bin/sudo /usr/sbin/chown vp /Users/vp/Library/Caches/Homebrew

==> Searching online for the Command Line Tools

==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

==> Installing Command Line Tools for Xcode-12.0

==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ for\ Xcode-12.0

Software Update Tool

Downloading Command Line Tools for Xcode

Downloaded Command Line Tools for Xcode

Installing Command Line Tools for Xcode

Done with Command Line Tools for Xcode

Done.

==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

==> Downloading and installing Homebrew…

HEAD is now at e082da45b Merge pull request #8754 from jonchang/refactor-git-cmds

==> Tapping homebrew/core

Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…

remote: Enumerating objects: 76, done.

remote: Counting objects: 100% (76/76), done.

remote: Compressing objects: 100% (50/50), 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


‘brew --version’ returns

Homebrew 2.5.2
Homebrew/homebrew-core N/A

I’m not able to brew update / brew doctor

Should I have to login to github via terminal?

Appreciate any pointers.

brew doctor resolved this.

But getting error for other cask commands.

vp@Vigneshs-MBP platform-tools % brew tap homebrew/cask

==> Tapping homebrew/cask

Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask’…

remote: Enumerating objects: 18, done.

remote: Counting objects: 100% (18/18), done.

remote: Compressing objects: 100% (16/16), 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-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask exited with 128.

Any pointers will be appreciated.

This is a network issue between you and github that causes the connection to drop. Unfortunately there’s not much I can do to help you debug it.

You can try connecting without a proxy / corporate firewall to see if that solves it.