【问题标题】:Vagrant can't find plugins after downgrading to 1.8.4 on Windows 10Vagrant 在 Windows 10 上降级到 1.8.4 后找不到插件
【发布时间】:2026-01-13 12:25:01
【问题描述】:

在得知我安装的最新版本的 Vagrant (1.9.x) 不能很好地与我必须使用的 vagrant 框配合使用后,我首先卸载 Vagrant 并将 Vagrant 版本降级到 1.8.5 并然后安装早期版本(1.8.5)。

在那之后,Vagrant 变得无法使用。

$ vagrant up
Bundler, the underlying system used to manage Vagrant plugins,
is reporting that a plugin or its dependency can't be found.
This is usually caused by manual tampering with the 'plugins.json'
file in the Vagrant home directory. To fix this error, please
remove that file and reinstall all your plugins using `vagrant
plugin install`.
C:/HashiCorp/Vagrant/embedded/gems/gems/bundler1.12.5/lib/bundler/resolver.rb:356:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'vagrant-vbguest x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)`

按照建议运行vagrant plugin install 后,我得到了同样的错误。 plugins.json 不包含任何相关内容(C:\HashiCorp\Vagrant\embedded\plugins.json):

{
    "version": "1",
    "installed": {
        "vagrant-share": {
            "ruby_version": "0",
            "vagrant_version": "1.8.5"
        }
    }
}

我还注意到我没有 ~/.vagrant.d 目录。有谁知道发生了什么?我尝试重新安装 vagrant 几次,每次都是同样的错误。

【问题讨论】:

    标签: vagrant vagrant-windows


    【解决方案1】:

    我从 Vagrant 2.0.0 升级到 Vagrant 1.8.7,遇到了同样的问题。

    我删除了文件 C:\Users\.vagrant.d\plugins.json。

    然后运行命令:vagrant plugin install gems

    这解决了这个问题。

    【讨论】:

    • 这个,这个,1000倍这个。
    最近更新 更多