Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew error occurred when I command "brew cask install virtualbox" or "brew cask search google-chrome"

I'm trying to install virtual box with brew-cask, but That returns this kind of error and I cannot install virtualbox. I use MacOSX Lion 10.7.5 and homebrew 0.9.5, ruby 2.1.0-p0

I've described the process in Terminal below.

First of all, brew tap command is succeeded.

    $ brew tap phinze/cask     Cloning into '/usr/local/Library/Taps/phinze/homebrew-cask'...     remote: Reusing existing pack: 32538, done.     remote: Counting objects: 36, done.     remote: Compressing objects: 100% (36/36), done.     remote: Total 32574 (delta 16), reused 2 (delta 0)     Receiving objects: 100% (32574/32574), 11.72 MiB | 379 KiB/s, done.     Resolving deltas: 100% (19138/19138), done.     Tapped 1 formula     It looks like you tapped a private repository. To avoid entering your     credentials each time you update, you can use git HTTP credential caching     or issue the following command:        cd /usr/local/Library/Taps/phinze/homebrew-cask       git remote set-url origin [email protected]:phinze/homebrew-cask.git 

Second, I've already installed brew-cask as below

    $ brew install brew-cask     Warning: brew-cask-0.35.0 already installed 

Third, when I tried to install virtualbox, but it returns this kind of error, and I cannot get install the Virtualbox.

    $ brew cask install virtualbox     ==> Removing legacy Tap     Error: No available cask for virtualbox 
like image 449
tomohitoy Avatar asked May 22 '14 01:05

tomohitoy


2 Answers

The homebrew-cask repository has moved. Did you try:

brew tap caskroom/cask brew install brew-cask brew cask install virtualbox 

instead of phinz?

Update:

As Jon Nalley points out, brew install brew-cask is now deprecated:

Important December 2015 update: Homebrew-Cask will now be kept up to date together with Homebrew (see #15381 for details). If you haven’t yet, run brew uninstall --force brew-cask; brew update to switch to the new system.

like image 156
Dair Avatar answered Sep 26 '22 17:09

Dair


brew tap caskroom/cask brew install brew-cask brew cask install virtualbox 

Worked for me.

like image 36
Vladimir Rozhkov Avatar answered Sep 24 '22 17:09

Vladimir Rozhkov