Homebrew-cask: brew cask list keep on showing error on an uninstalled cask

Created on 1 Jul 2017  Â·  2Comments  Â·  Source: Homebrew/homebrew-cask

General troubleshooting steps

Description of issue

I have dockertoolbox uninstalled, but when i run brew cask list it keep on showing Error: Cask 'dockertoolbox' is unavailable: No Cask with this name exists.

I have try to re-install brew cask, but the message is still there

➜  local brew untap caskroom/cask
Untapping caskroom/cask... (3,914 files, 82.6MB)
Untapped 0 formulae
➜  local brew cask list
==> Tapping caskroom/cask
Cloning into '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask'...
remote: Counting objects: 3755, done.
remote: Compressing objects: 100% (3738/3738), done.
remote: Total 3755 (delta 34), reused 524 (delta 13), pack-reused 0
Receiving objects: 100% (3755/3755), 1.27 MiB | 600.00 KiB/s, done.
Resolving deltas: 100% (34/34), done.
Tapped 0 formulae (3,764 files, 4.0MB)
Error: Cask 'dockertoolbox' is unavailable: No Cask with this name exists.

Output of your command with --verbose --debug

➜  ~ brew cask list --verbose --debug
Error: Cask 'dockertoolbox' is unavailable: No Cask with this name exists.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:115:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:132:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/scopes.rb:41:in `block in installed'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/scopes.rb:31:in `map'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/scopes.rb:31:in `installed'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/list.rb:40:in `list_installed'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/list.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:98:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:168:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:93:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:156:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:93:in `<main>'

Output of brew cask doctor

➜  ~ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.2.3-104-gfd5e673d2
caskroom/homebrew-cask (git revision 9893; last commit 2017-07-01)
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (1 files, 113.2MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3651 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin16
/Library/Ruby/Site/2.0.0/universal-darwin16
/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-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin16
/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-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16
==> Environment Variables
LC_ALL="en_US.UTF-8"
LC_CTYPE=""
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/zsh"

Most helpful comment

@reitermarkus yes
Problem resolved after I remove it, thanks!

All 2 comments

Does /usr/local/Caskroom/dockertoolbox exist?

@reitermarkus yes
Problem resolved after I remove it, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jitendravyas picture jitendravyas  Â·  4Comments

my2ter picture my2ter  Â·  4Comments

CoolTomatos picture CoolTomatos  Â·  3Comments

florianletsch picture florianletsch  Â·  3Comments

pendolf picture pendolf  Â·  4Comments