LoginSignup
0
0

More than 5 years have passed since last update.

brew update できなくなった

Posted at

brew update できなくなった

$ brew update
fatal: pack has 1 unresolved delta
fatal: index-pack failed
Error: Fetching /usr/local/Library/Taps/homebrew/homebrew-versions failed!

とまあこんな感じに。

結果的には再インストールしました。綺麗さっぱり。

Homebrewを再インストール

$ cd /usr/local
$ sudo rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

全部消したはずが再び同じエラーが。
問題のディレクトリに移動して下記コマンドで無理くり修正。

$ cd ./Library/Taps/homebrew/homebrew-versions
$ git checkout -f master; git reset --hard origin/master

全部消す必要なかったかも…
まあ、メンテしてなかったのもたくさんあったので、一旦よしと。

参考

brew update すると Error: Failed while executing と言われるときの対処法
http://qiita.com/bird_nitryn/items/b010f809880d61ff2c2b

brew update: unable to read again · Issue #2804 · Homebrew/homebrew-core · GitHub
https://github.com/Homebrew/homebrew-core/issues/2804

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0