$ brew tap homebrew/services
this command worked for me
Unable to use brew services
brew doctor/cleanup taps homebrew/core when using API mode
I am trying to install homebrew via mac and I keep getting a fatal error
Started getting errors ~2 days ago
The Error: fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
I've tried looking it up and none of the solutions that have been provided has helped. I did get to 45% download before this came up.
==> /usr/bin/sudo /usr/sbin/chown -R j*********:admin /usr/local/Homebrew ==> Downloading and installing Homebrew... HEAD is now at fd46a173f Merge pull request #11969 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9102 ==> Tapping homebrew/core remote: Enumerating objects: 1035322, done. remote: Counting objects: 100% (7/7), done. remote: Compressing objects: 100% (5/5), done. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 error: 1164 bytes of body are still expected 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
I am not sure if the fact that I am in China is why it's preventing me in installing homebrew. My Mac Version is macOS Big Sur 11.1
Update: Issue has been solved by the following command: rm -fr $(brew --repo homebrew/core)
I removed the HomeBrew files by running the following command. After that, I ran the installation as mentioned in the above post. It all worked fine. I was able to install all the packages I need.
# Intel systems
sudo rm -rf /usr/local/homebrew
# M1/M2 system
sudo rm -rf /opt/homebrew
I faced the same problem. The solution is just to remove your git configuration from your mac.
Command:
rm -rf ~/.gitconfig
After executing the command try to install brew. Command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installing homebrew install the brew git command:
brew install git
then configure your GitHub profile.
Why does it happen and what should I do ?