vagrant plugin repairコマンド

2017/01/01

備忘メモ。 Vagrantを1.8.5から1.9.2にバージョンアップしたら起動しなくなっちゃいました。

エラーメッセージによると、Vagrant本体のバージョンアップによってプラグインの互換性が失われたのが原因なんですね。 メッセージに従ってvagrant plugin repairを実行したら無事復旧しました。

> vagrant up
Vagrant failed to initialize at a very early stage:

The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:

  vagrant plugin repair

If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:

  vagrant plugin expunge --reinstall

Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-winnfsd (> 0)'

> vagrant plugin repair
Repairing currently installed plugins. This may take a few minutes...
Fetching: micromachine-2.0.0.gem (100%)
Fetching: vagrant-vbguest-0.13.0.gem (100%)
Fetching: vagrant-winnfsd-1.3.1.gem (100%)
Installed plugins successfully repaired!

>



おススメ