vagrant-hostsupdater icon indicating copy to clipboard operation
vagrant-hostsupdater copied to clipboard

vagrant-libvirt conflict

Open tbjornli opened this issue 6 years ago • 4 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.

tbjornli avatar Sep 11 '18 17:09 tbjornli

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.

erikjoling avatar Oct 02 '18 12:10 erikjoling

Updating Vagrant to a newer versions solved my problem.

Here's a related ticket for the vagrant-hostsmanager plugin: https://github.com/devopsgroup-io/vagrant-hostmanager/issues/256#issuecomment-386260691

erikjoling avatar Oct 02 '18 13:10 erikjoling

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)

tbjornli avatar Oct 02 '18 16:10 tbjornli

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.

tbjornli avatar Oct 02 '18 16:10 tbjornli