dotless-de / vagrant-vbguest

A Vagrant plugin to keep your VirtualBox Guest Additions up to date
MIT License
2.88k stars 207 forks source link

Installation fails becaues of conflicting rspec dependencies on Fedora 34 #410

Closed mattock closed 3 years ago

mattock commented 3 years ago

Installing vagrant-vbguest fails on Fedora 34:

$ vagrant --version
Vagrant 2.2.16
$ cat /etc/redhat-release 
Fedora release 34 (Thirty Four)
$ vagrant plugin list
No plugins installed.
$ ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
$ vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' 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 rspec (= 3.10.0) and rspec (= 2.14.1)
  Activated rspec-2.14.1
  which does not match conflicting dependency (= 3.10.0)

  Conflicting dependency chains:
    rspec (= 2.14.1), 2.14.1 activated

  versus:
    rspec (= 3.10.0)

  Gems matching rspec (= 3.10.0):
    rspec-3.10.0

I tried downgrading to Vagrant 2.2.9 but the behavior was the same.

There is a workaround, though:

$ VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Fetching micromachine-3.0.0.gem
Fetching vagrant-vbguest-0.29.0.gem
Installed the plugin 'vagrant-vbguest (0.29.0)'!
mattock commented 3 years ago

After a bit more research this seems like a generic Vagrant / packaging issue:

I had the exact same error when trying to install vagrant-hostnamanager plugin. I'll close this ticket but maybe it will be useful to somebody the the same issue