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

Failed to download resource "brew-cask" #15730

Closed
ericrowan opened this issue Dec 9, 2015 · 12 comments
Closed

Failed to download resource "brew-cask" #15730

ericrowan opened this issue Dec 9, 2015 · 12 comments

Comments

@ericrowan
Copy link

I've been using Caskroom for awhile now but ran into an issue today, so I uninstalled it and now cannot seem to reinstall:

$ brew install caskroom/cask/brew-cask
==> Installing brew-cask from caskroom/cask
==> Cloning https://github.com/caskroom/homebrew-cask.git
Updating /Library/Caches/Homebrew/brew-cask--git
fatal: Couldn't find remote ref refs/tags/v0.60.0
Error: Failed to download resource "brew-cask"
Failure while executing: git fetch -q origin
@jawshooah
Copy link
Contributor

Wow, you must have tried that within the 5 minutes between merging #15381 and tagging v0.60.0!

brew update and try again. Then check the caveats 😉

@adidalal
Copy link
Contributor

adidalal commented Dec 9, 2015

Additionally, to reinstall, you need to use brew tap caskroom/cask to (re)install now, I believe.

@jawshooah
Copy link
Contributor

You brew tap caskroom/cask if you've never done so before, yeah. Then brew update takes care of the rest forever after.

@ericrowan
Copy link
Author

Thanks guys. I will try tomorrow when I'm back at work and post the result here.

@jawshooah
Copy link
Contributor

Actually, even that is no longer necessary. Homebrew now auto-taps us for you when you run brew cask <whatever> (and runs brew install brew-cask, but that should change after Homebrew/legacy-homebrew#46845).

@jawshooah
Copy link
Contributor

@erow80 Just to be clear, I was being cute in my initial comment. There's no need to brew install brew-cask anymore. Just brew tap caskroom/cask as @adityadalal924 said and you'll be good to go.

@ericrowan
Copy link
Author

@jawshooah Oh yeah, totally got the joke 👀

@jawshooah jawshooah added bug Issue describing a reproducible bug. core Issue with Homebrew itself rather than with a specific cask. awaiting user reply Issue needs response from a user. labels Dec 10, 2015
@ryankask
Copy link

I had an issue this morning when I ran brew update:

$ brew update
Updated Homebrew from 0763b866 to dcb3cf09.
Updated 1 tap (caskroom/cask).
Error: Could not link caskroom/cask manpages to:
  /usr/local/share/man/man1/brew-cask.1

Please delete these files and run `brew tap --repair`.

Then:

$ 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 external commands with conflicting names.

Found command `brew-cask` in following places:
    /usr/local/bin/brew-cask
    /usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb

brew tap --repair didn't work. Eventually I just did:

$ brew untap caskroom/cask
$ brew rm brew-cask
$ brew tap caskroom/Cask

And everything seems fine now

@jawshooah
Copy link
Contributor

@ryankask points out an issue that @DomT4 previously brought up in #15381 (comment).

The easiest way to get around this is to brew uninstall --force brew-cask; brew update. @vitorgalvao, @adityadalal924, should we add a section to the README on upgrading from legacy versions?

@ryankask
Copy link

Thanks for the quick response.

I first checked the issues and saw this one listed first. Had I read the changelog I wouldn't have had the issue.

@vitorgalvao
Copy link
Member

@vitorgalvao, @adityadalal924, should we add a section to the README on upgrading from legacy versions?

We should, yes. At the moment, that is even more important than the “going away from linking” part.

@ericrowan
Copy link
Author

brew update resolved my original issue. Thanks.

@adidalal adidalal removed the awaiting user reply Issue needs response from a user. label Apr 12, 2016
@miccal miccal removed bug Issue describing a reproducible bug. core Issue with Homebrew itself rather than with a specific cask. labels Dec 23, 2016
@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

6 participants