結論
エラーの修正提案内容に沿って対応(vagrant plugin repair
など)したがだめだった。
vagrant plugin update
したら、すぐ修正できた。
経緯
vagrantをバージョンアップ。
その後、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
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-bindfs (= 1.1.4)'
エラーに沿って、
$ vagrant plugin repair
$ vagrant plugin expunge --reinstall
$ vagrant plugin update
を実行するが、以下エラー
$ vagrant plugin expunge --reinstall
This command permanently deletes all currently installed user plugins. It
should only be used when a repair command is unable to properly fix the
system.
Continue? [N]: y
All user installed plugins have been removed from this Vagrant environment!
Vagrant will now attempt to reinstall user plugins that were removed.
Installing the 'vagrant-bindfs' plugin. This can take a few minutes...
Fetching (※省略※)
Fetching vagrant-hostsupdater-1.2.1.gem
Fetching (※省略※)
(※省略※).....
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:
Unable to resolve dependency: user requested 'vagrant-hostsupdater (= 1.1.1.160)'
Unable to resolve dependency: user requested 'vagrant-hostsupdater (= 1.1.1.160)'
ここで引っかかっているラシイ。
Fetching vagrant-hostsupdater-1.2.1.gem
だが、
user requestedは 'vagrant-hostsupdater (= 1.1.1.160)'
ラシイ。
で、
vagrant plugin update
したら、
$ vagrant plugin update
Updating installed plugins...
Updated 'vagrant-hostsupdater' to version '1.2.1'!
この後、vagrant up
したら、無事に起動できました。