Homebrew-cask: Error: No available formula for brew-cask

Created on 14 Sep 2014  路  3Comments  路  Source: Homebrew/homebrew-cask

As USAGE.md says:

$ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

But it doesn't work for me:

$ brew upgrade brew-cask
Error: No available formula for brew-cask

brew doctor

$ 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: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    ossp-uuid

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:

    openssl

brew cask doctor

$ brew cask doctor                                                                                                                                                           dentarg@proalu ~/src/feedbag
==> OS X Version:
10.9.4
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p451
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew.git
==> Homebrew-cask Version:
0.41.1
==> Homebrew-cask Install Location:
/usr/local/Cellar/brew-cask/0.41.1
/usr/local/Cellar/brew-cask/0.39.3 (error: old version. Run "brew cleanup".)
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
<NONE>
==> Homebrew-cask Default Tap Cask Count:
1867
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.41.1/rubylib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin13
/Library/Ruby/Site/2.0.0/universal-darwin13
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
RUBYOPT=""
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/Users/dentarg/.gem/ruby/2.1.2/bin:/Users/dentarg/.rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/bin:/Users/dentarg/.rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/libexec:/Users/dentarg/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/Applications/Sublime Text 3.app/Contents/SharedSupport/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/Applications/Sublime Text 2.app/Contents/SharedSupport/bin:/usr/local/share/npm/bin:.:/Users/dentarg/local_bin:/Users/dentarg/local/bin:/usr/X11R6/bin:/Users/dentarg/code/google_cloud/google-cloud-sdk/bin:/usr/local/texlive/2012/bin/x86_64-darwin:/Users/dentarg/.cabal/bin:/usr/local/Library/Contributions/cmd"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/zsh"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_LANG="en_US.UTF-8"
==> Running As Privileged User:
No

(I've tried brew cleanup as the output from brew cask doctor said, but it doesn't do anything.)

Yes, I think I started with cask when it still was under "phinze". I've searched in issues and tried various untap commands, without any luck.

Most helpful comment

I had similar issue. I solved it with a simple solution :smile:

brew uninstall brew-cask
brew untap caskroom/cask
brew tap caskroom/cask
brew install brew-cask

Brew cask was updated from version 0.35 to 0.42.

All 3 comments

Hi! If brew cleanup doesn't work, then something is amiss with your Homebrew installation, and our ability to help you is limited. When a command begins with brew cask, that executes code from this project. When a command begins with just brew, that runs code from the Homebrew project.

However, some things you can try are: brew cleanup --force and brew install brew-cask (since Homebrew doesn't believe there is an installed copy to upgrade). You might also manually delete the old directory that brew cask doctor is warning about.

I had similar issue. I solved it with a simple solution :smile:

brew uninstall brew-cask
brew untap caskroom/cask
brew tap caskroom/cask
brew install brew-cask

Brew cask was updated from version 0.35 to 0.42.

@olegafx thanks! I now no longer get "Error: No available formula for brew-cask".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arnogues picture arnogues  路  4Comments

pablopunk picture pablopunk  路  3Comments

florianletsch picture florianletsch  路  3Comments

vasigorc picture vasigorc  路  3Comments

gebing picture gebing  路  3Comments