mac

macにvagrant2.0.3をインストールしたらpluginがインストールできなくて困った話

macにvagrantの最新版(2.0.3)をインストールしてVVVをup、vagrant-hostsupdaterというプラグインを入れると良いという記事を見たので入れようとしたところ下記のエラーが出てインストールできない

vagrant plugin install vagrant-hostsupdaterInstalling the ‘vagrant-hostsupdater’ plugin. This can take a few minutes…
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

SocketError: Failed to open TCP connection to rubygems.org:443 (Hostname not known: rubygems.org) (https://rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/

ping https://rubygems.org/

してみたり

curl https://rubygems.org/

してみたらちゃんと通る。
なんだこれと思って調べていると海外のページに「同じ問題にぶち当たったけどvagrant2.0.0に戻したら治った」というコメントを発見。

vagrantのダウングレードは公式にかいてあるとおりにまずvagrantを削除

Uninstalling Vagrant – Vagrant by HashiCorp : https://www.vagrantup.com/docs/installation/uninstallation.html

その後2.0.0のpkgファイルをダウンロード、インストール

vagrant2.0.0に戻したらプラグインがすんなり入った。
なんだろうねこれ。

ちなみにVirtualBoxのバージョンは5.2.8だったのを5.1.0にダウングレードする必要がでてきた。

これは古いvirtualboxのpkgファイルをダウンロードしてきて、インストールするだけで簡単にダウングレードできた。

Macでphp-cgiを使えるようにする方法 – IntelliJ IDEA前のページ

シェルでディレクトリの後につく/(スラッシュ)を消す方法次のページ

コメント

  • コメント (0)

  • トラックバックは利用できません。

  1. この記事へのコメントはありません。

最近の記事

Twitter

PAGE TOP