vagrant plugin repair

表題のコマンドを実行する羽目になった。

■ 環境

  • Vagrant 2.0.1
  • Mac OSX El Capitan

■ Error

下記のようなエラーが出ていた。

$ vagrant status
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

Or you may want to try updating the installed plugins to their latest
versions:

  vagrant plugin update

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

変なタイミングでVagrantをupgradeしたせいだろうか。とりあえずメッセージにある通りにやってみる。

■ plugin repair

$ vagrant plugin repair
Repairing currently installed plugins. This may take a few minutes...
Fetching: vagrant-share-1.1.9.gem (100%)
Fetching: micromachine-2.0.0.gem (100%)
Fetching: vagrant-vbguest-0.15.0.gem (100%)
Installed plugins successfully repaired!
$

これで一応問題は解決できたようだ。`vagrant status`が正常に返ってくるようになった。

■ plugin update

念のため書きも実施しておく。

$ vagrant plugin update
Updating installed plugins...
Updated 'vagrant-share' to version '1.1.9'!
Updated 'vagrant-vbguest' to version '0.15.0'!
$

以上。

コメントを残す

メールアドレスが公開されることはありません。

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください