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~ %
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
I'm trying to install brew on my mac (intel), I'm using this command (from the homepage of Brew https://brew.sh/):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
And it returns the following error:
==> Checking for `sudo` access (which may request your password).
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
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R User:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
error: Could not read 02f0189335907805d422c817462674081f48ab60
error: Could not read 7e455a623a3f49f63b589ea31d72c860b1d33c06
error: Could not read 02f0189335907805d422c817462674081f48ab60
error: Could not read 7e455a623a3f49f63b589ea31d72c860b1d33c06
remote: Enumerating objects: 111915, done.
remote: Counting objects: 100% (107893/107893), done.
remote: Compressing objects: 100% (25395/25395), done.
remote: Total 107053 (delta 81151), reused 104985 (delta 79221), pack-reused 0
Receiving objects: 100% (107053/107053), 28.88 MiB | 6.37 MiB/s, done.
Resolving deltas: 99% (81133/81151), completed with 618 local objects.
fatal: pack has 18 unresolved deltas
fatal: index-pack failed
Failed during: git fetch --force origin
It doesn't give me any hint of possible follow-up actions. What should I do?
Let me know if I should post any additional information.
After hours of wandering around forums and GitHub issues, and StackOverflow answers long gone forgotten, I finally made it!
I solved it by removing my /usr/local/Homebrew folder and then reinstalling homebrew from scratch with the command from their website (https://brew.sh/).
Now, I would love to give credit to whom I got this solution from, but I can't find the link among all the tabs and docs I had open. Maybe one day...
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I've been trying on and off for the last couple of months to install homebrew on my mac and it is not working. I've tried deleting directories, installing and reinstalling homebrew and then not being able to install certain libraries like mongoosedb, I even reset my computer and the problem is still there.
This is the error message i recieve now when trying to reinstall homebrew.
==> Tapping homebrew/core
remote: Enumerating objects: 973663, done.
remote: Counting objects: 100% (340/340), done.
remote: Compressing objects: 100% (189/189), done.
error: 4292 bytes of body are still expected.67 MiB | 6.00 MiB/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
Any suggestions as too how I could fix this?
Thanks.
As stupid as it sounds, the problem was I had Child Block enabled on my virgin wifi.
I'd suggest a few ways, since home brew depends on cellar
Try doing
rm -f /usr/local/Cellar
rm -f /usr/local/.git
This will reset your git, but the moment you input a clone command, you can proceed after providing git credentials.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
If your have ruby setup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Please help me find a solution to this error. I am installing brew with this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
The result:
==> You are using macOS 10.13.
==> We (and Apple) do not provide support for this old version.
This installation may not succeed.
After installation, you will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew\'s GitHub,
Twitter or IRC. You are responsible for resolving any issues you experience
while you are running this old version.
==> 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
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown biad:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 3c84e1fef Merge pull request #10381 from jonchang/fix-version-type
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
fatal: Needed a single revision
invalid upstream 'origin/master'
Failed during: /usr/local/bin/brew update --force --quiet
It seems you are trying to overwrite an existing install that has a broken core tap. Try deleting the homebrew core folder like this:
rm -fr $(brew --repo homebrew/core)
Then reinstall homebrew using:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Hope this works for you.
This generally happens when something with homebrew/core is corrupt.
% find /opt/homebrew /usr/local/ -type d -name homebrew-core -print
% rm -rf the-directories-found-in-the-above-find
% brew tap homebrew/core
First find your homebrew-core, then remove (rm -rf), then reinstall. If this fails because it didn't install enough to get a working brew, then remove the directory and retry the initial install.
So I am trying to learn how to deploy React apps on Heroku. I already have one ready, but I want to take steps carefully and slowly. So first I am trying to install Heroku in my OS machine. Currently, I am using OS Catalina Version 10.15.1.
I type this in my terminal brew tap heroku/brew && brew install heroku
and get back this.
...
==> Tapping heroku/brew
Cloning into '/usr/local/Homebrew/Library/Taps/heroku/homebrew-brew'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 10 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Tapped 2 formulae (38 files, 28.6KB).
==> Installing heroku from heroku/brew
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-12.13.0.tar.xz
######################################################################## 100.0%
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink .
/usr/local/opt is not writable.
You can try again using:
brew link heroku-node
==> Summary
🍺 /usr/local/Cellar/heroku-node/12.13.0: 3 files, 40.3MB, built in 8 seconds
==> Installing heroku/brew/heroku
Error: An exception occurred within a child process:
RuntimeError: /usr/local/opt/heroku-node not present or broken
Please reinstall heroku/brew/heroku-node. Sorry :(
Theodosioss-MacBook-Pro:aristi theodosiostziomakas$ brew link heroku-node
Linking /usr/local/Cellar/heroku-node/12.13.0...
Error: Could not symlink .
/usr/local/opt is not writable.
Any ideas what's wrong and how to fix it?
Thanks,
Theo.
I've started getting weird errors on MacOS 10.13.3 (17D102).
I've just tried to install Homebrew using the instructions on the GitHub page and received this error:
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4680, done.
remote: Compressing objects: 100% (4476/4476), done.
remote: Total 4680 (delta 45), reused 694 (delta 19), pack-reused 0
Receiving objects: 100% (4680/4680), 3.81 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (45/45), done.
Tapped 4478 formulae (4,722 files, 11.9MB)
Error: Permission denied # rb_sysopen - /tmp/github_api_headers20180308-4136-cqt2yb
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core
I have tried:
sudo chown -R $(whoami) $(brew --prefix)/*
As per this guide and still receive the error.
Running Brew Doctor returns Your system is ready to brew. and my Ruby Version is ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-darwin16.6.0]
The error can be more easily repeatable using brew install zsh.
This happened to me when i had sudo'd to the postgres user.
Exiting back to my normal user allowed me to proceed without obstacle.