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

后端 未结 4 390
南笙
南笙 2021-02-05 00:16

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-p

相关标签:
4条回答
  • 2021-02-05 00:53

    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
    
    0 讨论(0)
  • 2021-02-05 00:54
    brew tap caskroom/cask
    brew install brew-cask
    brew cask install virtualbox
    

    Worked for me.

    0 讨论(0)
  • 2021-02-05 00:55

    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.

    0 讨论(0)
  • 2021-02-05 00:56
    brew install caskroom/cask/brew-cask
    brew install homebrew/completions/brew-cask-completion
    

    That worked for me

    0 讨论(0)
提交回复
热议问题