'vagrant up' 给出 'An error occurred while downloading'

'vagrant up' gives 'An error occurred while downloading'

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

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.

我也尝试下载盒子(所以 URL 是正确的!)并手动添加它,但结果相同:

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.

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

我安装了 VC++ 2010 redistributable 并且 vagrant up 立即可用!