Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Install failed - now it's stuck! #44460

Closed
jasonbutler opened this issue Sep 29, 2015 · 17 comments
Closed

Install failed - now it's stuck! #44460

jasonbutler opened this issue Sep 29, 2015 · 17 comments

Comments

@jasonbutler
Copy link

Error log:
Jasons-MBP:~ Jason$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
Jasons-MBP:~ Jason$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Jasons-MBP:~ Jason$ brew doctor
-bash: brew: command not found
Jasons-MBP:~ Jason$ brew update
-bash: brew: command not found
Jasons-MBP:~ Jason$

It wont uninstall, update or run anything - I can't get it off my machine to try again! Help

@tdsmith
Copy link
Contributor

tdsmith commented Sep 29, 2015

Try rm -rf /usr/local/.git.

@tingyu66
Copy link

I got the same issue after I upgraded my machine from Maverick to Yosemite. Exactly the same error log as @jasonbutler.

I first used $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" and tried to uninstall homebrew. I cannot find the log, but it indeed deleted something and output some error. After that I think /usr/local/bin/brew was deleted. Eventually got the same error as Jason.

I tried the command provided by @tdsmith, but it doesn't work. Appreciate your help, thanks.

@tingyu66
Copy link

@jasonbutler
I brought my brew back to life, after rm the sudo rm -rf /usr/local/.git and chown username /usr/local, I finally can reinstall brew. Thanks @tdsmith for the help.

@williameliel
Copy link

@tdsmith +1

1 similar comment
@Z-starts
Copy link

Z-starts commented Oct 4, 2015

@tdsmith +1

@bys-levi-lu
Copy link

@tingyu66 +1

@DomT4
Copy link
Member

DomT4 commented Oct 10, 2015

Closing with the known fix then. Thanks @tingyu66.

@DomT4 DomT4 closed this as completed Oct 10, 2015
@alexbaumgertner
Copy link

@tdsmith 👍 it works!

@fengshuinality
Copy link

Thank you @tingyu66!

@LavareX
Copy link

LavareX commented Oct 28, 2015

Thanks.It works!

@nhathm
Copy link

nhathm commented Oct 29, 2015

@tdsmith +1

@jerrylau91
Copy link

@tdsmith +1, thank you very much! helped me a lot.

@code4a
Copy link

code4a commented Nov 3, 2015

@tdsmith +1, thanks, and retry ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)", success!

@tdsmith
Copy link
Contributor

tdsmith commented Nov 3, 2015

Why are so many people having this problem? I would have thought this would be esoteric.

@mehadhe
Copy link

mehadhe commented Nov 3, 2015

@tdsmith +1, Thank you bro :-) Thank you very much....

@saurabhmaun
Copy link

Working (Y)

@tdebroc
Copy link

tdebroc commented Mar 23, 2016

+1

@Homebrew Homebrew locked and limited conversation to collaborators Mar 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests