agiledivider / vagrant-hostsupdater

MIT License
1.15k stars 129 forks source link

conflicting dependencies ruby_dep (= 1.5.0) and ruby_dep (= 1.3.1) #142

Closed DougBeney closed 7 years ago

DougBeney commented 7 years ago

Hello, For a while, I used your Vagrant plugin on my Mac and it was excellent. Now, I moved to Solus Linux and I'm having some trouble unfortunately.

Here's what happens when I run sudo vagrant plugin install vagrant-hostsupdater.

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 ruby_dep (= 1.5.0) and ruby_dep (= 1.3.1)
  Activated ruby_dep-1.3.1
  which does not match conflicting dependency (= 1.5.0)

  Conflicting dependency chains:
    ruby_dep (= 1.3.1), 1.3.1 activated

  versus:
    ruby_dep (= 1.5.0)

  Gems matching ruby_dep (= 1.5.0):
    ruby_dep-1.5.0

My versions:

$ vagrant -v
Vagrant 1.9.6
$ ruby -v
ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-linux]
$ gem -v
2.4.5.2
$ bundler -v
Bundler version 1.15.4
DougBeney commented 7 years ago

I tried running uninstalling Vagrant and then running the following commands, but it didn't help (and then reinstalling).

rm -rf /opt/vagrant
rm -f /usr/bin/vagrant
rm -rf ~/.vagrant.d/
DougBeney commented 7 years ago

Closing my issue because I found out this is a problem with the command vagrant plugin update

DougBeney commented 7 years ago

Found the fix! In case anyone else comes across this, here's the command I ran that fixed it:

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-hostsupdater