2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vagrant 2.4.2-1 にアップグレードしたら動かない!

Posted at

問題

vagrantplugin が使えなくなった

$ vagrant up
Bringing machine 'local' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'hostmanager'.

hostmanager もインストールできない

$ vagrant plugin install vagrant-hostmanager
Installing the 'vagrant-hostmanager' plugin. This can take a few minutes...
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:

conflicting dependencies logger (= 1.6.0) and logger (= 1.6.1)
  Activated logger-1.6.1
  which does not match conflicting dependency (= 1.6.0)

  Conflicting dependency chains:
    logger (= 1.6.1), 1.6.1 activated

  versus:
    logger (= 1.6.0)

  Gems matching logger (= 1.6.0):
    logger-1.6.0

同じ人がかなり多くいるっぽい

一旦解決策

このバージョン (2.4.2-1) は壊れているので、一個前のバージョンをインストールし直す

# (check versions)
apt list -a vagrant
# 一覧表示... 完了
# vagrant/jammy,now 2.4.2-1 amd64 [インストール済み]
# vagrant/jammy 2.4.1-1 amd64
# vagrant/jammy 2.4.0-1 amd64
# vagrant/jammy 2.3.7-1 amd64
# vagrant/jammy 2.3.6-1 amd64
# ... (以下略)

# 一個前をインストールする
sudo apt install vagrant=2.4.1-1

# hostmanager を再インストール
vagrant plugin install vagrant-hostmanager

最新バージョンが壊れているっぽいので、一個前に戻すことで解決。早く直ることを祈る。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?