5
2

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.

brew updateで'unable to access'

Posted at

brew updateしようとしたら下記のようエラーがでました。

$ brew update
fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/caskroom/homebrew-cask/': Could not resolve host: github.com

色々探してたところ、githubのissueに上がってました。
どうやらproxyを削除すれば良さそう。。

ということで下記を実行

git config --global --unset http.proxy 
git config --global --unset https.proxy

実行した後、一回ターミナルを閉じます。

そして、brew updateを実行

$ brew update
Updated 5 taps (caskroom/cask, heroku/brew, homebrew/core, homebrew/php, homebrew/versions).
==> New Formulae

無事アップデートできました。

参考URL

Could not resolve host: github.com, but I can access it without problem
プロキシ (proxy)とは
git config --global で設定した値を削除する方法

5
2
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?