じゃがいも畑(個人メモ)

2022-09-22に作成

個人的な開発用のメモです。
やりたい言語があるんじゃなくて、作りたい物があるのでその方策を探している系。

所有者限定モードのためこのボードには投稿できません ボードとは?

vagrant updateメモと余談

vagrant update

  • ある朝思い立ってupdateしました
  • エラーメモ

vagrant 自体の update

  • 入ってたバーションは Vagrant 2.2.X
  • https://www.vagrantup.com/downloads からインストーラを取得
  • インストーラ実行。C:\ に新たなディレクトリを作ろうと指定してくるが、元からあるE:\Vagrant を指定
  • PC再起動
$ vagrant -v
Vagrant 2.3.1

以下余談

  • 結論:add centos7 しようとしてたがすでに入ってた
$ vagrant box list
centos/7 (virtualbox, 2004.01)

...

add centos7しようとする

-- update後、addしようとした

$ vagrant box add centos7

-- 下記のようなエラー

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-hostsupdater (= 1.2.4)'
$ 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]: n

Vagrant expunge has been declined. Skipping removal of plugins.

Vagrant will now attempt to reinstall user plugins that were removed.
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
Installed the plugin 'vagrant-hostsupdater (1.2.4)'!
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.30.0)'!

==> box: Box file was not detected as metadata. Adding it directly...
A name is required when adding a box file directly. Please pass
the `--name` parameter to `vagrant box add`. See
`vagrant box add -h` for more help.

  • ここでVagrant Cloudを見に行って前に入れてなかったっけ?となってbox listを確認した。
  • もう入ってたのでこの話はおわり。