我正在尝试使用 virtual box 设置虚拟机。我在我的 Windows 7 64 位机器上安装了虚拟框和 Vagrant 。我还使用 puphpet 构建了一个环境。但是每当我尝试安装盒子 ubuntu1404-x64 时,它都会抛出错误
Bringing machine 'machine1' up with 'virtualbox' provider...
==>Machine1: Box 'puphpet/ubuntu1404-x64' could not be found. Attempting to find and install...
machine1: Box Provider: virtualbox
machine1: Box Version: >= 0
machine1: Box file was not detected as metadata. Adding it directly...
machine1: Adding box 'puphpet/ubuntu1404-x64' (v0) for provider: virtualbox
machine1: Downloading: puphpet/boxes/ubuntu1404-x64
machine1:
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.
我检查了 URL https://atlas.hashicorp.com/puphpet/boxes/ubuntu1404-x64/并且盒子 puphpet/ubuntu1404-x64 确实存在。
还有当它说
The error message, if any, is reproduced below
它不会在终端显示任何描述。我在 google 上搜索了这个问题,在 stackoverflow 上尝试了一些答案,但没有结果。请帮忙。
最佳答案
我过去遇到过类似的情况,它帮助我使用 vagrant 命令行下载盒子,而不是自动下载它(从 Vagrantfile 中的 URL):
$ vagrant box add USER/BOX
查看更多 here .你能试试同样的方法吗?它也可能对你有用。
编辑:在 Windows 盒子上,似乎需要 Microsoft Visual C++ 2010 redist 来执行盒子的配置。可以下载here .有关 puhpet issuet 的更多信息:here
关于找不到 Vagrant 框错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39325033/