而不是運行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