プログラミング逆引き辞典

~ 多言語対応のプログラミングレシピ ~

Vagrant upで「The plugins failed to initialize correctly.」エラー時の対処法

■VirtualBoxをアップデートしたらVagrantが古くて対応しなくなった為、Vagrantもアップデートしたら下記エラーとなった。
その際の解決方法の備忘録。
 
「vagrant up」コマンドで起動しようとすると下記エラーが発生


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」を実行しろと書かれていたので実行


vagrant plugin repair

 
そうすると次は下記エラー


Failed to automatically repair installed Vagrant plugins. To fix this
problem remove all user installed plugins and reinstall. Vagrant can
do this for you automatically by running the following command:

 
エラーメッセージを読んでいくと「vagrant plugin expunge –reinstall」を実行しろと書かれていたので実行


vagrant plugin expunge --reinstall

 
下記メッセージが表示され、成功した様子


Installed the plugin 'vagrant-vbguest (0.19.0)'!

 
再び「vagrant up」コマンドを実行すると成功


vagrant up