Could not fetch specs from https://rubygems.org/

rubybundle installしたときに

Could not fetch specs from https://rubygems.org/

のエラーが出る場合がある。問題の原因は色々考えられるが代表的な直し方は

  1. ruby/bundleの再インストール

  2. IPv6を使わない。OSXの場合はSystem Preference -> Network -> Advanced -> TCP/IPIPv6をLink-Local onlyにする。

  3. http を代わりに使う。source http://rubygems.org/をGemfileにかく。

自分の場合はIPv6をlink local onlyにして解決した。

Reference