[ACCEPTED]-original brew update Error needs to run git fetch --unshallow, but got another git fatal-homebrew
I dug a little after trying to deal with 8 the git repo, but the simplest thing that 7 fixed it for me was untapping and then retapping 6 the casks repo
brew untap homebrew/cask brew tap homebrew/cask
that put everything back in 5 order.
I haven't RTFM'd lately, but I'm guessing 4 this has something to do with how casks 3 seem to be moving into the main homebrew 2 repo (or at least that's how it seems as 1 a naive user).
I tried to run:
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow
brew update seems OK now.
In my case I was getting this
$ brew update ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Error: Fetching /usr/local/Homebrew/Library/Taps/myf/homebrew-formulas failed!
Notice the 3 myf/homebrew-formulas in the last line. This is one of my old 2 repos not accessible anymore.
I got it solved 1 with
$ brew untap myf/homebrew-formulas Untapping myf/formulas... Untapped 5 formulae (37 files, 63KB).
Other commands I tried
$ brew upgrade $ brew update-reset $ brew doctor
More Related questions