安装 vagrant-librarian-chef 有 net-ssh 版本冲突

Installing vagrant-librarian-chef Has net-ssh Version Conflicts

尝试为 Vagrant 1.8.1 安装 vagrant-librarian-chef 插件时出现以下错误

$ vagrant plugin install vagrant-librarian-chef
Ignoring bigdecimal-1.2.7 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.2.7
Ignoring bigdecimal-1.2.7 because its extensions are not built.  Try: gem pristine bigdecimal --version 1.2.7
Installing the 'vagrant-librarian-chef' plugin. This can take a few minutes... 
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.

You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.

Vagrant could not find compatible versions for gem "net-ssh":
  In Gemfile:
    vagrant (= 1.8.1) x86-mingw32 depends on
      net-ssh (~> 3.0.1) x86-mingw32

    vagrant (= 1.8.1) x86-mingw32 depends on
      net-scp (~> 1.1.0) x86-mingw32 depends on
        net-ssh (>= 2.6.5) x86-mingw32

    vagrant (= 1.8.1) x86-mingw32 depends on
      net-scp (~> 1.1.0) x86-mingw32 depends on
        net-ssh (>= 2.6.5) x86-mingw32

    vagrant-librarian-chef (>= 0) x86-mingw32 depends on
      librarian-chef (>= 0) x86-mingw32 depends on
        chef (>= 0.10) x86-mingw32 depends on
          net-ssh (~> 2.1.3) x86-mingw32

当我执行 gem list net-ssh 时,我得到以下结果:

*** LOCAL GEMS ***

net-ssh (3.0.2, 2.9.4)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.1)

有什么问题的帮助吗?我对 ruby 和 vagrant 都是新手,这可能对情况没有帮助!

问题是net-ssh版本冲突。 Vagrant 1.8.1 使用 v3.0.1,但 vagrant-librarian-chef 接受最高 2.9.

的版本

将 vagrant 版本降级到 1.7.4 解决了我的问题。