vagrant-libvirt conflict
tbjornli opened this issue · comments
On a clean install of Ubuntu 18.04 and Vagrant 2.0.2 installed from repository.
I get this error message when trying to install the plugin
$ vagrant plugin install vagrant-hostsupdater
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
conflicting dependencies fog-core (~> 1.43.0) and fog-core (= 1.45.0)
Activated fog-core-1.45.0
which does not match conflicting dependency (~> 1.43.0)
Conflicting dependency chains:
fog-core (= 1.45.0), 1.45.0 activated
versus:
vagrant-libvirt (> 0), 0.0.41 activated, depends on
fog-core (~> 1.43.0)
Uninstalling vagrant-libvirt
(which comes along when vagrant) and then installing vagrant-hostupdater
works fine. It's also no problem installing the vagrant-libvirt
package again afterwards.
How did you uninstall vagrant-libvirt?
$ vagrant plugin uninstall vagrant-libvirt
Uninstalling the 'vagrant-libvirt' plugin...
The plugin you're attempting to uninstall ('vagrant-libvirt') is a
system plugin. This means that the plugin is part of the installation
of Vagrant. These plugins cannot be removed.
You can however, install a plugin with the same name to replace
these plugins. User-installed plugins take priority over
system-installed plugins.
Updating Vagrant to a newer versions solved my problem.
Here's a related ticket for the vagrant-hostsmanager plugin:
devopsgroup-io/vagrant-hostmanager#256 (comment)
How did you uninstall vagrant-libvirt?
$ vagrant plugin uninstall vagrant-libvirt Uninstalling the 'vagrant-libvirt' plugin... The plugin you're attempting to uninstall ('vagrant-libvirt') is a system plugin. This means that the plugin is part of the installation of Vagrant. These plugins cannot be removed. You can however, install a plugin with the same name to replace these plugins. User-installed plugins take priority over system-installed plugins.
I uninstalled it with apt (apt-get remove vagrant-libvirt)
Updating Vagrant to a newer versions solved my problem.
Here's a related ticket for the vagrant-hostsmanager plugin:
devopsgroup-io/vagrant-hostmanager#256 (comment)
Thanks for the information. I'm using the 2.0.2 available from the repository. I'm guessing this will be solved as soon as 2.0.3 is available through the repo.