Vagrant upgrade

久しぶりに表題の通り。

■ 環境

  • Vagrant 2.0.1 → 2.0.3
  • macOS High Sierra

■ vagrant version

何の気なしに`vagrant version`を実行した。

$ vagrant version
Installed Version: 2.0.1
Latest Version: 2.0.3

To upgrade to the latest version, visit the downloads page and
download and install the latest version of Vagrant from the URL
below:

https://www.vagrantup.com/downloads.html

If you're curious what changed in the latest release, view the
CHANGELOG below:

https://github.com/mitchellh/vagrant/blob/v2.0.3/CHANGELOG.md
$

新しいversionが出ているようなのでupgradeすることにした。dmgをダウンロードしてきてインストールして、再度`vagrant version`を確認しようとしたところ下記のようなエラーが。

$ vagrant version
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-share (> 0)'
$

とりあえず`vagrant 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.1.gem (100%)
Installed plugins successfully repaired!
$

`vagrant version`も問題なくなった。

$ vagrant version
Installed Version: 2.0.3
Latest Version: 2.0.3

You're running an up-to-date version of Vagrant!
$

以上。