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

Impossible uninstall brew #45905

Closed
federicocappelli opened this issue Nov 11, 2015 · 4 comments
Closed

Impossible uninstall brew #45905

federicocappelli opened this issue Nov 11, 2015 · 4 comments

Comments

@federicocappelli
Copy link

After a failed attempt to re-install brew now i'm trying to remove it completely but the uninstall script is failing:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
-e:100:in `realpath': No such file or directory - /usr/local/bin/brew (Errno::ENOENT)
    from -e:100:in `realpath'
    from -e:100:in `<main>'
$ ls -al /usr/local/
total 0
drwxr-xr-x@ 10 xxxx      wheel   340 11 Nov 22:41 .
drwxr-xr-x@ 12 root       wheel   408  6 Nov 21:25 ..
drwxr-xr-x@ 12 423630511  admin   408 13 Nov  2014 .git
drwxr-xr-x@  8 423630511  admin   272 13 Nov  2014 Library
drwxrwxr-x@ 48 xxxx      admin  1632 11 Nov 22:41 bin
drwxr-xr-x@  3 root       wheel   102  2 Mar  2015 cuda
drwxr-xr-x   3 root       wheel   102  8 Jan  2015 include
drwxrwxr-x@ 14 root       admin   476  6 May  2015 lib
drwxrwxr-x@  3 root       wheel   102 13 Nov  2014 libexec
drwxrwxr-x@  6 root       admin   204 13 Nov  2014 share

system:

ProductName:    Mac OS X
ProductVersion: 10.11.1
BuildVersion:   15B42
Darwin MacVac 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64

@DomT4
Copy link
Member

DomT4 commented Nov 12, 2015

Sigh. I fixed one bug on the uninstall script the other day and managed to apparently unearth another. Will go check it out; apologies.

@bradsjl
Copy link

bradsjl commented Nov 12, 2015

I had the same issue. The only reason I was trying to uninstall/reinstall homebrew is because I was getting an SSL error when running my run.rb script. Should a reinstall fix this issue? Is there a manual way to uninstall while the script is broken?

The error is SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (RestClient::SSLCertificateNotVerified)

Here is the warning when I try and install:

$ 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)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md CONTRIBUTING.md etc include lib Library LICENSE.txt McAfee opt Qt README.md share ssl SUPPORTERS.md .git .gitignore

@DomT4
Copy link
Member

DomT4 commented Nov 12, 2015

Should be fixed by Homebrew/install@7220feb.

@federicocappelli
Copy link
Author

Fixed! thanks

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 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

3 participants