`brew install` and `brew update` hang with error: 'refs/remotes/origin/master': unknown revision or path not in the working tree. #10368
Comments
Everything you've posted suggests that you're actually overwriting an existing install that has a b0rken core tap. That's unnecessary, since the following is less disruptive: rm -fr $(brew --repo homebrew/core) # because you can't `brew untap homebrew/core`
brew tap homebrew/core |
|
Thanks! While I'm pretty certain that this was a fresh install (the machine is newish), I'm not so sure that the initial install attempt didn't break for some other (normal) reason that I failed to note. |
|
I just experienced the same issue in a brand new macOS install. Steps to reproduce were copying and pasting the installer snippet from brew.sh. I think that in my case this happened due to internet issues, as cloning Running this as suggested above solved the issue:
|
Thanx a lot. |

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 updateand can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew configandbrew doctorand included their output with your issue?What you were trying to do (and why)
A fresh install of homebrew on OSX.
What happened (include command output)
Installation hangs with the error:
brew updatehangs the same error, fwiw. Unsurprising since it appears that/usr/local/bin/brew update --force --quietappears to be the spot where the installed hangs.Command output
What you expected to happen
Successful install without a fatal error.
Step-by-step reproduction instructions (by running
brewcommands)Run the install command on a mac running Mojave 10.14.6
Output of
brew configandbrew doctorcommandsBrew config
Brew doctor
The text was updated successfully, but these errors were encountered: