Homebrew-cask: Reinstalling HB fails

Created on 2 Sep 2018  Â·  5Comments  Â·  Source: Homebrew/homebrew-cask

General troubleshooting steps

Description of issue

I have listed my problem in #49726, but it was closed, and the suggestion is:
reinstalling HB

However, I have tried reinstalling HB and it fails, which has been described in #49726. So the problem is not solved yet closed.

I have no way but post an issue again here.

I don't know how HB works, could any one help me? thank you very much!

Most helpful comment

Hi @vitorgalvao thanks again for your advice, after trying the command in the page you mentioned to uninstall HB:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

and tried to install HB again with:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

HB is now working normally now. So it doesn't annoy me any more.
Except something I guess unimportant:

$ brew cask search wiznote
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Counting objects: 4142, done.
remote: Compressing objects: 100% (4127/4127), done.
remote: Total 4142 (delta 28), reused 607 (delta 12), pack-reused 0
Receiving objects: 100% (4142/4142), 1.30 MiB | 353.00 KiB/s, done.
Resolving deltas: 100% (28/28), done.
Tapped 1 command and 4045 casks (4,151 files, 4.1MB).
Warning: Calling `brew cask search` is deprecated and will be disabled on 2018-09-30! Use `brew search` instead.
==> Casks
wiznote

Since after try to use

$ brew search wiznote
==> Casks
wiznote

it works well.

So thank you again for solving this problem that has puzzled me so long. Best wishes!

All 5 comments

Looks like we can't see the error, if that's what you posted, because it's been automatically deleted.
screen shot 2018-09-02 at 6 18 10 pm

I have no way but post an issue again here.

You could have posted in the same issue as before. Closing does not prevent you from posting on an issue, and you’ve done it in that exact issue.

The problem with this report is “reinstalling HB fails” doesn’t tell us anything. What failed? What were the steps? Where did it break? What was the output? What did you try?

Hi @vitorgalvao , thanks for your patience and your chance for me to argue. I really don't know much about how HB works and what command means during the process. I'm sorry to post an new issue to emphasis the previous problem again just because I think the previous issue is not solved and closed.

I was just puzzled by why #49726 is closed since the problem is not solved.

As you said that "We’re not being able to reproduce, so something must’ve got messed up in your local setup. If you’re still encountering this, I suggest reinstalling HB."

However, in #49726 I have tried reinstalling HB and it still can't fix the problem I mentioned, by using

$ brew uninstall --force brew-cask

to uninstall HB and it fails(I don't know why and how to uninstall HB in other way), So I tried to use

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

again to hope it can be reinstalled and again it fails.

So could you or anyone answer #49726 clearly how to uninstall HB completely, or what commands could be used? Then I would accept #49726 to be closed completely without any disagreement.

I don't know what happened, and I don't know what you means "local setup", could someone help me to use HB again?

I mean I don't care about how problems in #49726 could be solved if reinstall HB can work, however, I tried to uninstall HB in #49726 and it failed. So I was totally puzzled.

I do love HB and hope it works again. Thank you for your attention.

I was just puzzled by why #49726 is closed since the problem is not solved.

Because the problem is in your setup, not related to the normal behaviour of HBC.

brew uninstall --force brew-cask

There’s your problem. That command does nothing. brew-cask is no longer a formula, but an integral part of Homebrew.

To uninstall HB (you might need to reinstall your packages afterwards), see the FAQ and search for How do I uninstall Homebrew?. You’ll find the command to run.

Hi @vitorgalvao thanks again for your advice, after trying the command in the page you mentioned to uninstall HB:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

and tried to install HB again with:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

HB is now working normally now. So it doesn't annoy me any more.
Except something I guess unimportant:

$ brew cask search wiznote
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Counting objects: 4142, done.
remote: Compressing objects: 100% (4127/4127), done.
remote: Total 4142 (delta 28), reused 607 (delta 12), pack-reused 0
Receiving objects: 100% (4142/4142), 1.30 MiB | 353.00 KiB/s, done.
Resolving deltas: 100% (28/28), done.
Tapped 1 command and 4045 casks (4,151 files, 4.1MB).
Warning: Calling `brew cask search` is deprecated and will be disabled on 2018-09-30! Use `brew search` instead.
==> Casks
wiznote

Since after try to use

$ brew search wiznote
==> Casks
wiznote

it works well.

So thank you again for solving this problem that has puzzled me so long. Best wishes!

Was this page helpful?
0 / 5 - 0 ratings