-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBP M1 fails to 'brew update' and 'brew upgrade' #10275
Comments
What does |
|
Sorry, i tried to paste everything correctly but it does in one line (i'm not confident with markdown 😅). In the terminal everything is correctly spaced |
Your Homebrew-installed Please read the following message before trying the steps belowPlease make a note of the steps you took to encounter this problem, and the output of Do
and let me know if that helps. |
Now it works, thanks. Congrats for the amazing project and thanks for the responsiveness, it's really incredible. If you need some telemetry for the error let me know. |
Well, if you could describe in as much detail as possible everything you did with Or, even better, if you can figure out how to reproduce this error, that should help us figure out a way to get rid of it for good. This may entail uninstalling In case you try working with a freshly installed copy of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The git issue happened for me on a completely fresh install of homebrew and git on a brand new M1 Mac mini. It was literally one of the first things I did on this computer and the git install was immediately broken. I didn't even do a |
Thanks for the info, @fluffy-critter. Does that mean you manually did |
@fluffy-critter @AlbertoPimpo Did you install the Xcode Command Line Tools before you installed Homebrew? Xcode CLT comes with a slightly outdated version of |
To clarify, the sequence of events was:
Which resulted in a broken git installation in /opt/homebrew. I had to |
My suspicion is that |
It seems to still have installed in Maybe the |
The error seems to be with one of the library dependencies and not with git itself. In Homebrew/discussions#439 it’s reinstalling the dependencies which fixes the issue. The specific error I was getting when trying to run git was that it was kill -9ed, which implies it’s getting a signal from something else. I’m not sure how macOS responds to a binary trying to load in a dylib for a different architecture, though. Also I wonder if maybe this was a transitory issue? For me the original failed installation happened on January 6, and it wasn’t until yesterday that I finally got around to seeking a real solution other than uninstalling homebrew git (I had been chalking it up to vague “silicon growing pains” and had more urgent stuff to get working). I wonder if any brand-new installs today are still having the problem. |
Just my experience: I installed I had installed Xcode CLT first, then Brew, then brew git. Never had any issues with git or brew. Although, the Git version I installed (and the Git version I still have installed) is Looks like people who had the issue in Homebrew/discussions#439 and @AlbertoPimpo both had installed (or were trying to install |
I'm guessing the problem comes from doing Doing this (i.e. Right now the way to avoid this seems to be to |
Hmm, interesting! I had always assumed that installing brew did a checkout from the git repo to begin with so there shouldn't be anything outdated, but I have to admit not knowing too much about how brew's installer works... |
I assumed that too, but: either it doesn't, or it's failed to do so in the cases we've seen, given the output of |
The installer does actually run |
Hm, and I don't see any updates that would have happened after I had installed on the 6th. The PCRE recipe was updated on the 5th (specifically to add arm64 support) though, so maybe there was a broken build for a couple days? Is there a means of auditing the bindist package history? |
For me was quite the same, the only difference is that i was installing the full Xcode from appstore. Xcode was still installing after the installation so i'm not so sure what xcode installed before and after the brew installation. |
Can anyone reproduce this today with the current Homebrew installer, Git and Homebrew/brew? |
I thought I was going mad when that happened. Did the recent Big Sur update on my M1 and Brew told me that CLTs weren't installed, so I'm now in the process of installing them again. Literally everything was gone, except whatis.
Is this a known issue on Apple's side? |
I'm having what looks like the same issues with brew upgrade and git. I recently upgraded to 11.2 (M1 Mac Mini), realized it broke homebrew, and reinstalled the CLT. I did then brew upgrade, which kicked this error:
Error: Failure while executing; I uninstalled git and I believe the upgrade is working, but whenever I reinstall it and do brew upgrade it fails with the same error. It seems confined to git version 2.30.1, which is what brew is installing. |
Do
then try reinstalling |
That worked, thanks! It looks like it was git's dependencies causing the issue. |
Not sure if this is related but updated to 11.2.2 and had issues when trying to get Neovim.
|
@TC72 what's the output of |
brew doctor says system is ready brew config:
|
Try
then reinstall |
@TC72 You mentioned that you recently updated your Mac. Have you tried reinstalling the developer tools? I'm no expert by any means on this topic, but every Big Sur update (for me anyway) wipes the developer tools. Try running this... If it says they're already installed, I'll step aside and let more knowledgeable peeps help. |
They should already have the dev tools installed:
|
Thanks, I did reinstall the dev tools. |
Whoops, my bad. |
@TC72 You reinstalled them before, or are they installing right now? |
Command line tools were reinstalled earlier.
Tried uninstalling luajit now but same error about no bottle for it. |
That's strange; Try
then install
|
Yes, uninstall neovim first fixed the reinstall command. |
It's OK, I've built it from source. |
You can install neovim 0.5 with |
Gives me exactly the same errors as |
There's probably a crash report in Console.app that will give more info. |
I can't explain this, tried exactly the same command again to check the console output and now it works. |
Possibly. Such is the nature of HEAD builds - no guarantee they'll be working all the time. |
Been Trying for 2 Hours and finally this worked. Thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Bug report
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
Every time i try to install with
brew install
something it gives me the following warning and error. When i try to update or upgrade it gave me only the warning and the error. Trying 'brew install git' or 'brew reinstall git' doesn't solved.What happened (include command output)
brew upgrade (the same output with brew update) fails with this warning and error.
alberto@MacBook-Pro ~ % brew upgrade Warning: git 2.30.0 is already installed and up-to-date To reinstall 2.30.0, run
brew reinstall git/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6334 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6342 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6343 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6361 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6362 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6380 Killed: 9 "$GIT_EXECUTABLE" "$@" /opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 6381 Killed: 9 "$GIT_EXECUTABLE" "$@" ==> Homebrew has enabled anonymous aggregate formula and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (or will be during this
brew` run).Error: Failure while executing;
git config --replace-all homebrew.analyticsmessage true
was terminated by uncaught signal KILL.`
Command output
What you expected to happen
I expect it updates and upgrade what i have installed 😅
Step-by-step reproduction instructions (by running
brew
commands)brew update
orbrew upgrade
on apple silicon macbook pro (the same error is given with brew install but the installation goes fine)Output of
brew config
andbrew doctor
commandsThe text was updated successfully, but these errors were encountered: