2016-11-09 51 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