2016-11-09 52 views
0

而不是运行vagrant box add ubuntu/trusty64我想手动下载.box文件(如在this question中)。添加Vagrant .box文件失败

我下载从这里的文件: 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. 

(这里没有更多的错误消息)

+0

可能重复[Vagrant框无法找到或无法在远程目录中访问 - 不兼容卷曲版本](http://stackoverflow.com/questions/40473943/vagrant-box-could-not-be-发现或不能被访问的远程目录/ 40474205#40474205) –

+0

是的,它有同样的原因。我无法找到其他问题,因为我有不同的错误信息。 – marceloow

回答

1

如果你的流浪汉版本Vagrant 1.8.7你可以试试这个。

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

这对我有效。

+0

谢谢,为我节省了很多时间! – marceloow