2015-07-11 94 views
0

我試圖下載一個框,碰到以下錯誤:無法下載框 - '下載遠程文件時發生錯誤。'

snowch:~/Demo$ vagrant box add zyga/ubuntu-precise-desktop-i386 
==> box: Loading metadata for box 'zyga/ubuntu-precise-desktop-i386' 
    box: URL: https://atlas.hashicorp.com/zyga/ubuntu-precise-desktop-i386 
==> box: Adding box 'zyga/ubuntu-precise-desktop-i386' (v1.0) for provider: virtualbox 
    box: Downloading: https://vagrantcloud.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box 
An error occurred while downloading the remote file. The error 
message, if any, is reproduced below. Please fix this error and try 
again. 

transfer closed with 1403398904 bytes remaining to read 

如果我試着用捲曲下載,我得到:

snowch:~/Demo$ curl --insecure -L -v https://vagrantcloud.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box 
... 
* SSLv3, TLS alert, Client hello (1): 
* transfer closed with 1403398904 bytes remaining to read 
* Closing connection 1 
* SSLv3, TLS alert, Client hello (1): 
curl: (18) transfer closed with 1403398904 bytes remaining to read 

我的無業遊民的版本是:

snowch:~/Demo$ vagrant --version 
Vagrant 1.7.3 

任何想法?

+1

我可以用同一個盒子和流浪漢1.7.2重現此。但我仍然可以從Atlas下載其他盒子。我認爲盒子後面有一個破碎的二進制文件。 – blacklabelops

+0

感謝您嘗試此操作並反饋您的結果。 –

回答

2

您可以檢查什麼放浪與做:

export VAGRANT_LOG=debug 

我認爲這可能是在圖譜中的錯誤。我會ping hashicorp。

用來下載盒完整的命令看起來是這樣的:

curl -q \ 
--fail \ 
--location \ 
--max-redirs 10 \ 
--user-agent Vagrant/1.7.2 \ 
--continue-at - \ 
--output test.box \ 
https://atlas.hashicorp.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box