添加 Vagrant .box 文件失败

Add Vagrant .box file failing

我想手动下载 .box 文件而不是 运行ning vagrant box add ubuntu/trusty64(如 this question)。

我从这里下载了文件: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box

当我运行vagrant box add test123 ~/Downloads/trusty-server-cloudimg-amd64-vagrant-disk1.box输出结果如下:

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

(没有进一步的错误信息)

如果你的 vagrant 版本 Vagrant 1.8.7 你可以试试这个。

sudo rm -rf /opt/vagrant/embedded/bin/curl

这对我有用。