流浪汉。您尝试添加的框不支持您请求的提供者

rav*_*ram 5 vagrant

我使用创建了一个无业游民的盒子vagrant package,上传并释放了它。
然后,我vagrant init <username>/<box>创建了一个Vagrantfile。我什至将盒装版本附加到Vagrantfile。
接下来我做了vagrant up --provider virtualbox。这会尝试在本地获取框,然后在找不到框时出现错误:

The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Atlas, make sure the box is
released.
Run Code Online (Sandbox Code Playgroud)

我已经将virtualbox设置为提供程序,并且virtual box与我使用的其他box都可以正常工作。

SLI*_*med 7

如果您使用的是 ubuntu,请确保已安装 virtualbox。

sudo apt install virtualbox-qt
Run Code Online (Sandbox Code Playgroud)


rav*_*ram 4

我认为由于某种原因,流浪者已经腐败了。所以重新安装 vagrant 就成功了。

  • 我的只需要升级到新版本。 (3认同)