'流浪汉'给出'下载时发生错误'

时间:2016-06-15 14:00:56

标签: vagrant vagrant-windows

我在Linux和OS X机器上使用Vagrant没有问题。 现在在Windows 10上(使用Bash for Windows进行预览),在下载我的框时失败,但没有指定正确的错误消息:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'trusty' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'trusty' (v0) for provider: virtualbox
    default: Downloading: http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
    default:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

我也尝试下载该框(因此网址正确!)并手动添加,但结果相同:

C:\> vagrant box add ubuntu/trusty64 c:\Users\michi\boxes\trusty-server-cloudimg-amd64-vagrant-disk1.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'ubuntu/trusty64' (v0) for provider:
    box: Unpacking necessary files from: file://c:/Users/michi/boxes/trusty-server-cloudimg-amd64-vagrant-disk1.box
    box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

1 个答案:

答案 0 :(得分:1)

我在这个github问题中找到了答案:https://github.com/mitchellh/vagrant/issues/6725#issuecomment-223733553

我安装了VC++ 2010 redistributable并且vagrant up立即工作了!