而不是运行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.
(这里没有更多的错误消息)
可能重复[Vagrant框无法找到或无法在远程目录中访问 - 不兼容卷曲版本](http://stackoverflow.com/questions/40473943/vagrant-box-could-not-be-发现或不能被访问的远程目录/ 40474205#40474205) –
是的,它有同样的原因。我无法找到其他问题,因为我有不同的错误信息。 – marceloow