Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.94k stars 10.72k forks source link

Bug Report: Ghost Cask Not Found #20977

Closed merktassel closed 8 years ago

merktassel commented 8 years ago

(Remembered to run brew update; brew cleanup; brew cask cleanup before reporting my issue. It didn't fix things.)

Description of issue

I tried installing Ghost via brew cask install ghost today but got an error:

Error: No available Cask for ghost. Did you mean one of:
cyberghost  ghostlab

I figured the cask must not've been created yet, so I decided to fork the repository and add it myself. However, I noticed the file already existed and looked good to go. Is there a reason why this Cask isn't showing up in the CLI?

Output of brew cask install ghost --verbose

Error: No available Cask for ghost
Error: nothing to install
Error: Kernel.exit

Output of brew doctor

Your system is ready to brew.

Output of brew cask doctor

==> OS X Release:
10.11
==> OS X Release with Patchlevel:
10.11.4
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p648
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 0.9.9 (git revision 9a9a9; last commit 2016-05-04)
Homebrew/homebrew-core (git revision b9714; last commit 2016-05-04)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/brew.git
==> Homebrew-cask Version:
0.60.0 (git revision 13d1; last commit 64 minutes ago)
==> Homebrew-cask Install Location:
<NONE>
==> Homebrew-cask Staging Location:
/opt/homebrew-cask/Caskroom
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files, 0B
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
/usr/local/Library/Taps/caskroom/homebrew-versions
==> Homebrew-cask Default Tap Cask Count:
3128
==> Contents of $LOAD_PATH:
/usr/local/Library/Taps/caskroom/homebrew-cask/lib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin15
/Library/Ruby/Site/2.0.0/universal-darwin15
/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-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin15
/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-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> 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/markcastle/.nvm/versions/node/v4.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/Library/Taps/caskroom/homebrew-cask/cmd:/usr/local/Library/ENV/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
==> Running As Privileged User:
No
adidalal commented 8 years ago

brew cask install ghost

merktassel commented 8 years ago

That's my bad, I actually did type in brew cask install ghost and got that output. Sorry for the confusion.

adidalal commented 8 years ago

Please always follow the reporting bugs guide. To do so, edit the top post and then comment after this one so I can check back. Thanks.

merktassel commented 8 years ago

Done!

adidalal commented 8 years ago

This is pretty weird and I can't duplicate.

Can you run brew tap caskroom/cask and retry?

Else if you're okay with wiping cask, see:

The "nuclear" option is:

# NOTE: this will wipe homebrew-cask and installed Casks
brew uninstall brew-cask
brew untap caskroom/cask
sudo rm -rf '/opt/homebrew-cask'
brew install caskroom/cask/brew-cask
vitorgalvao commented 8 years ago

Try running just

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

first to see if that works, without removing installed apps.

@adidalal I’m guessing you have that command in TextExpander, or the like. It needs an update, as brew install caskroom/cask/brew-cask no longer does anything.

merktassel commented 8 years ago

Thanks, that did the trick!