16
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrewでupdateしたらremote: Repository not found.となった時の対応方法

Last updated at Posted at 2019-03-01
  • 環境
    • macOS Mojave version10.14.3

事象 : brew updateしたらremote: Repository not found.と言われた

$ brew update
remote: Repository not found.
fatal: repository 'https://github.com/Homebrew/homebrew-boneyard/' not found
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard failed!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
anyenv                  cafeobj                 entityx                 h3                      libopenmpt              re-flex                 sn0int                  ungit
## 省略

原因 : リポジトリがなくなったから

そもそもhomebrew-boneyardって誰?

boneyardは、日本語で墓場でした。
数多な理由で公式で使えなくしたコマンドとformulaを埋葬しているようです。
MySQLあたりを昔インストールしたときにでも使ったのだろう・・・

対応 : リポジトリの参照を消す

brew tapで公式以外のリポジトリをフォーミュラとしてHomebrewに追加できるとのことなのでその逆のbrew untapでなくなってしまったリポジトリを消します。

# tapしているものを一応確認
$ brew tap
Updating Homebrew...
homebrew/apache
homebrew/boneyard # <<<<<<<<< この方を消す
homebrew/cask
homebrew/core
homebrew/dupes
homebrew/php
homebrew/science
homebrew/versions

# 消す
$ brew untap homebrew/boneyard
Untapping homebrew/boneyard...
Untapped (30 files, 23.2KB).

# 消されたことを確認する
$ brew tap
homebrew/apache
homebrew/cask
homebrew/core
homebrew/dupes
homebrew/php
homebrew/science
homebrew/versions

# 怒られなくなる
$ brew update
Already up-to-date.

が、doctorに「非公式なとこtapしてるからuntapしてみ」って注意されるので全部untapする

この間まで、こんな事言われなかったような・・・まぁいいか

$ 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 or file an issue; just ignore this. Thanks!

Warning: You have the following deprecated, official taps tapped:
  Homebrew/homebrew-dupes
  apache
  science
  php
  versions
Untap them with `brew untap`.

$ brew untap Homebrew/homebrew-apache
Untapping homebrew/apache...
Untapped (104 files, 95.8KB).

$ brew untap Homebrew/homebrew-science
Untapping homebrew/science...
Untapped (303 files, 11.7MB).

$ brew untap Homebrew/homebrew-php
Untapping homebrew/php...
Untapped (278 files, 4.6MB).

$ brew untap Homebrew/homebrew-versions
Untapping homebrew/versions...
Untapped (106 files, 699KB).

# やっと静まった・・・
$ brew doctor
Your system is ready to brew.
16
13
2

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
16
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?