Homebrew-cask: Bug report: Error: Unknown command: cask

Created on 2 Jan 2016  路  4Comments  路  Source: Homebrew/homebrew-cask

Description of issue

Not being able to install casks after brew uninstall --force brew-cask; brew update.

brew install Caskroom/cask/flash-player
==> brew cask install Caskroom/cask/flash-player
Error: Unknown command: cask

Output of brew install Caskroom/cask/flash-player --verbose

brew cask install Caskroom/cask/flash-player --verbose
Error: Unknown command: cask
Error: Kernel.exit

Output of brew doctor

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Broken symlinks were found. Remove them with `brew prune`:
    /usr/local/bin/N1
    /usr/local/bin/mpv
    /usr/local/lib/libmysqlclient.18.dylib

Warning: Your XQuartz (2.7.7) is outdated
Please install XQuartz 2.7.8:
  https://xquartz.macosforge.org

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libosxfuse.2.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libosxfuse.la

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
    echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile

Warning: Your Xcode (6.3.2) is outdated
Please update to Xcode 7.2.
Xcode can be updated from the App Store.

Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.

Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:
    homebrew/versions/v8-315

Output of brew cask doctor

Error: Unknown command: cask

Most helpful comment

It's caskroom, all lowercase. Try this:

brew untap caskroom/cask
brew untap phinze/cask
brew update
brew cask install flash-player

All 4 comments

It's caskroom, all lowercase. Try this:

brew untap caskroom/cask
brew untap phinze/cask
brew update
brew cask install flash-player

brew is telling me to use Caskroom

brew install flash-player
Error: No available formula with the name "flash-player"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
These formulae were found in taps:
Caskroom/cask/flash-player-debugger                                                                                    Caskroom/cask/flash-player
To install one of them, run (for example):
  brew install Caskroom/cask/flash-player-debugger

anyway, after running your commands, it works fine now, also brew install Caskroom/cask/flash-player

Ah, I guess taps are case-insensitive. It is @caskroom though (see: the owner of this repo).

Out of curiosity, what was the output of the commands I gave you? My guess is that you either had phinze/cask tapped (defunct) or you had your own branch checked out in caskroom/cask.

It was caskroom/cask

brew untap caskroom/cask
Untapping caskroom/cask... (4,083 files, 88.2M)
Untapped 1 formula
Was this page helpful?
0 / 5 - 0 ratings