Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Error #5173

Closed
burtonageo opened this issue Jul 2, 2014 · 2 comments
Closed

Update Error #5173

burtonageo opened this issue Jul 2, 2014 · 2 comments

Comments

@burtonageo
Copy link

When updating cask, I get the error:

Error: No such file or directory - /usr/local/Library/Formula/ab.rb
Please report this bug:
    https://github.com/caskroom/homebrew-cask/issues
/usr/local/Library/Homebrew/cmd/untap.rb:36:in `unlink'
/usr/local/Library/Homebrew/cmd/untap.rb:36:in `delete'
/usr/local/Library/Homebrew/cmd/untap.rb:36:in `block in unlink_tap_formula'
/usr/local/Library/Homebrew/cmd/untap.rb:32:in `each'
/usr/local/Library/Homebrew/cmd/untap.rb:32:in `unlink_tap_formula'
/usr/local/Library/Homebrew/cmd/update.rb:25:in `update'
/usr/local/Cellar/brew-cask/0.36.2/rubylib/cask/cli/update.rb:5:in `run'
/usr/local/Cellar/brew-cask/0.36.2/rubylib/cask/cli.rb:57:in `run_command'
/usr/local/Cellar/brew-cask/0.36.2/rubylib/cask/cli.rb:72:in `process'
/usr/local/bin/brew-cask.rb:42: in `<top(required)>' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55: in `require'    
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:59:in `require?'
/usr/local/Library/brew.rb:137:in `<main>'

Updating brew normally works as expected

@rolandwalker
Copy link
Contributor

Thanks!

Relevant to #5080, this might be another case where we make an internal Homebrew call which is not stable. Also related: the exception is occurring within Homebrew, but the issues URL points back here.

However, I cannot duplicate this particular bug. My understanding is that you are running

$ brew cask update

which gives you an error, whereas

$ brew update

is working correctly.

brew cask update has no special functionality; it is supposed to be just a convenience synonym for brew update. So your workaround for the moment should be to run brew update instead.

0.36.2 is also not the newest version of Homebrew-cask, so you should also do

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

I would also check the output of brew doctor. It is possible that /usr/local/Library/Formula/ab.rb is a broken symlink or something like that.

@burtonageo
Copy link
Author

Thank you, it now works after using your instructions. This issue can now be closed

@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants