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

Can't install new casks #1091

Closed kevinSuttle closed 11 years ago

kevinSuttle commented 11 years ago
❯ brew doctor
Your system is ready to brew.

❯ brew cask install textexpander
Error: wrong number of arguments (2 for 0)
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/download.rb:10:in `initialize'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/download.rb:10:in `new'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/download.rb:10:in `perform'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/installer.rb:12:in `install'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/cli/install.rb:8:in `run'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/cli/install.rb:5:in `each'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/cli/install.rb:5:in `run'
/usr/local/Cellar/brew-cask/0.16.2/rubylib/cask/cli.rb:21:in `process'
/usr/local/bin/brew-cask.rb:6
/usr/local/Library/brew.rb:51:in `require'
/usr/local/Library/brew.rb:51:in `require?'
/usr/local/Library/brew.rb:101

❯ which ruby
/Users/ksuttle/.rbenv/shims/ruby

❯ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]

❯ brew upgrade brew-cask
Error: brew-cask-0.16.2 already installed
nanoxd commented 11 years ago

Cask is currently on version 0.17.1 Can you do a brew update; brew upgrade?

kevinSuttle commented 11 years ago

Should have mentioned, I did so before posting this.

❯ brew update
Already up-to-date.
nanoxd commented 11 years ago

Try running a brew tap --repair. It could be that your local version has a conflict with a file.

phinze commented 11 years ago

❯ brew upgrade brew-cask Error: brew-cask-0.16.2 already installed

phinze commented 11 years ago

Whoops; misclick.

kevinSuttle commented 11 years ago
❯ brew tap --repair
Pruned 0 dead formula
Tapped 41 formula
❯ brew upgrade brew-cask
Error: brew-cask-0.16.2 already installed                                                                                                           
❯ brew update
Already up-to-date.
❯ brew upgrade
❯ brew prune
Pruned 0 dead formula
Tapped 41 formula
❯ brew cleanup
❯ brew doctor
Your system is ready to brew.
kevinSuttle commented 11 years ago

No idea. I checked and I have rw permissions.

phinze commented 11 years ago

@kevinSuttle Hmm this is a weird one. So you're running into the issue because homebrew changed its interface on us recently (#1079). We fixed it and we're several releases past 0.16.2 now.

I wonder if your remotes are off on your tap. You could try brew untap phinze/cask && brew tap phinze/cask to reinitialize it.

kevinSuttle commented 11 years ago

That worked! Thanks @phinze!

❯  brew untap phinze/cask && brew tap phinze/cask
Untapped 1 formula
Cloning into '/usr/local/Library/Taps/phinze-cask'...
remote: Counting objects: 8795, done.
remote: Compressing objects: 100% (5814/5814), done.
remote: Total 8795 (delta 4331), reused 7360 (delta 2955)
Receiving objects: 100% (8795/8795), 5.58 MiB | 882.00 KiB/s, done.
Resolving deltas: 100% (4331/4331), done.
Checking connectivity... done
Tapped 1 formula

❯ brew upgrade brew-cask
==> Upgrading 1 outdated package, with result:
brew-cask 0.17.1
==> Upgrading brew-cask
==> Cloning https://github.com/phinze/homebrew-cask.git
Updating /Library/Caches/Homebrew/brew-cask--git
==> Checking out tag v0.17.1
   /usr/local/Cellar/brew-cask/0.17.1: 592 files, 2.3M, built in 2 seconds

❯ brew doctor
Your system is ready to brew.

❯ brew cleanup
Removing: /usr/local/Cellar/brew-cask/0.16.2...

❯ brew cask install textexpander
==> Downloading http://cdn.smilesoftware.com/TextExpander_4.1.1.zip
######################################################################## 100.0%
==> Success! textexpander installed to /opt/homebrew-cask/Caskroom/textexpander/4.1.1
==> Linking TextExpander.app to /Applications/TextExpander.app
ychen41 commented 11 years ago

perfect solution

yuvadm commented 10 years ago

brew upgrade brew-cask was what worked for me.