devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 148 forks source link

Not installable with vagrant plugin install on Ubuntu 18.04 beta 1 #256

Closed metalagman closed 6 years ago

metalagman commented 6 years ago
bigboss@bigboss:~/Work/project$ vagrant plugin install vagrant-hostmanager
Installing the 'vagrant-hostmanager' 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)

bigboss@bigboss:~/Work/affstats$ vagrant -v
Vagrant 2.0.2
purencool commented 6 years ago

I can confirm this issue

ghost commented 6 years ago

+1

manishmahabir commented 6 years ago

vagrant ssh The following plugins will be installed: vagrant-auto_network, vagrant-vbguest, vagrant-hostsupdater Installing the 'vagrant-auto_network' 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)

Installing the 'vagrant-vbguest' 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)

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)

Please run again

metalagman commented 6 years ago

Issue is simple, vagrant-libvirt installed with vagrant on 18.04 has version 1.45.0. Version 1.43.0 is not available for this distro.

gitconsumer commented 6 years ago

So what's the fix?

quangthe commented 6 years ago

Have same issue when install vagrant-aws. My PC running Ubuntu 18.04.

$ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' 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)
Potherca commented 6 years ago

I had a similar problem that was resolved when I updated to Vagrant v2.0.3:

wget -c https://releases.hashicorp.com/vagrant/2.0.3/vagrant_2.0.3_x86_64.deb
sudo dpkg -i vagrant_2.0.3_x86_64.deb

(I have not yet tried with v2.0.4)

quangthe commented 6 years ago

@Potherca Thanks! It works for me as well.

luksrv commented 6 years ago

@Potherca works for me too...tanks

Potherca commented 6 years ago

Although I appreciate the "Thanks", I would like to suggest simply adding a :+1: to my comment.

macduff23 commented 4 years ago

Is there a fix other than reverting to an older vagrant package?

Conflict present With vagrant 2.2.3 on ubuntu 19'ish - uname -a Linux 5.3.0-29-generic , "Ubuntu"v="19.10 (Eoan Ermine)"

Err ~ Installing the 'vagrant-lxd' 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 (= 2.1.0) Activated fog-core-2.1.0 which does not match conflicting dependency (~> 1.43.0) Conflicting dependency chains: fog-core (= 2.1.0), 2.1.0 activated versus: vagrant-libvirt (> 0), 0.0.41 activated, depends on fog-core (~> 1.43.0) root@xxxx:/home/vagrant# vagrant -v Vagrant 2.2.3

Fix - apt-get remove vagrant

Then revert to older vagrant deb version - (as suggested above:)

Alls good:) Installed the plugin 'vagrant-lxd (0.4.4)'! root@xxx:/home/vagrant# vagrant -v Vagrant 2.0.3

metalagman commented 4 years ago

Got the same issue on 19.10 ubuntu. The only solution is to get latest .deb package from the vagrant official site and to install it manualy.