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

杀马特。学长 韩版系。学妹 提交于 2019-12-03 00:56:40

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.

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

Worked for me.

At first, I got the "multiple taps" error:

~ $ brew install brew-cask
Error: Formulae found in multiple taps:
 * caskroom/cask/brew-cask
 * phinze/cask/brew-cask

Then, I included the full (caskroom) path to brew-cask and it worked:

 brew install caskroom/cask/brew-cask
 brew cask install virtualbox
brew install caskroom/cask/brew-cask
brew install homebrew/completions/brew-cask-completion

That worked for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!