-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Homebrew Cannot Update, Doctor, Unlink, etc. #991
Comments
Latest update. If you update to the latest version of brew it should probably heal itself now. Make sure you run Caution: This workaround may not be up-to-date! Before anything else, to update cd /usr/local; git fetch; git reset --hard origin/master Please AN OLD COMMAND THAT'S NO LONGER NEEDED and that should probably get you back on your feet again. Sorry. Note: Please run the above command with caution. It's probably best to take a look at what's inside There's a brief explanation of what happened below. |
Thanks, but I'm receiving the same error:
|
Please attach |
I was having a similar issue and just run What is that supposed to do? I don't think I've updated Xcode, so I don't really know why this happened... |
I've posted a gist of the debug output here... |
First, did that fix the problem for you? We're migrating
Blow away the old directory that somehow failed to migrate.
You may need to |
@stonemirror Could you try |
@zmwangx thanks that worked. It did fail on rake and python for some reason. I fixed it by reinstalling them. |
Okay, I seem to be getting closer to something that's working; I got an |
@publicarray Those appear to be conflicting files from multiple formulae. For instance, in OP's case, |
It partially solved my issues. Brew commands now work and I can update and install new things. When running Example:
After running
Got one more error with After that, Thanks! |
@stonemirror Good to hear, let us know if you're hitting other errors (other than conflicting links, which usually means you either have stale links that you could safely remove, or for some reason you have conflicting files from multiple formulae, which you should try to resolve by reinstalling the formula at question first). |
@enriquefernandez Yeah unfortunately you have to resolve them one at a time, each time followed by a rerun of
|
Solved! (sorry, updated my previous comment before seeing your reply) |
@enriquefernandez As for |
@enriquefernandez Glad to hear. |
Yeah, I've uninstalled and reinstalled python3 after my science/opencv upgrade failed, and rerun the I'll close this, thanks for the help, @zmwangx! |
Let's leave this open for a while actually for visibility. |
#992 or similar will hopefully address this case a bit better. |
Edited title to uncouple from Xcode update. |
Running |
Affected folks have probably sought (and hopefully found) help already. Closing. |
Bug reports:
I ran a
brew update
yesterday unproblematically. Today, no matter what I try to do, I'm getting the following response:Executing any of the
brew link
orbrew unlink
commands results in the same error. Removing the symlink and rerunning the command gives the same error; the symlink file reappears after any such attempt. I get the same error in response to abrew doctor
command. I'm kind of at a loss here.I also attempted the following:
which, again, resulted in the same error.
I've made no changes since yesterday except that I upgraded my copy of Xcode (and the Xcode command line tools), so I'm guessing that's what might be responsible somehow. Any suggestions as to how I might produce better information on what's going on here would be welcome...
The text was updated successfully, but these errors were encountered: