2017-10-05 200 views
3

你能幫我解決這個問題嗎?Windows安裝vagrant up失敗

我想安裝Aerospike在我的Windows 10(辦公室筆記本電腦)。我已經下載了最新的VM Box最新流浪漢。 然後通過git bash,我試圖按照從aerospike windows安裝的步驟,但是,我在'vagrant up'失敗。下面是結果:

$ vagrant up Bringing machine 'default' up with 'VirtualBox' provider... 
==> default: Box 'aerospike/centos-6.5' could not be found. Attempting to find and install... 
    default: Box Provider: virtualbox 
    default: Box Version: >= 0 
==> default: Loading metadata for box 'aerospike/centos-6.5' 
    default: URL: http/aerospike/centos-6.5 
==> default: Adding box 'aerospike/centos-6.5' (v3.14.1.2) for provider: virtualbox 
    default: Downloading: https: //vagrantcloud.com/aerospike/boxes/centos-6.5/versions/3.14.1.2/providers/virtualbox.box 
    default: 

An error occurred while downloading the remote file. The error 
message, if any, is reproduced below. Please fix this error and try 
again. 

SSL證書問題:HTTPS:在證書鏈 更多細節在這裏自簽名證書//curl.haxx.se/docs/sslcerts.html

捲曲執行SSL證書驗證默認情況下,使用證書頒發機構(CA)公鑰(CA證書)的「綁定」 。如果默認軟件包文件不足,可以使用--cacert選項指定備用文件。 如果此HTTPS服務器使用由證書 中代表的CA簽署的證書,證書驗證可能失敗,原因是證書存在 問題(它可能已過期,或者名稱可能與 不匹配URL中的域名)。 如果您想關閉卷發對證書的驗證,請使用 -k(或--insecure)選項。 HTTPS代理具有類似的選項--proxy-cacert和--proxy-insecure。

注意:我可以成功加載'precise64'。

+1

你運行的VirtualBox的版本? – lvolmar

回答

3

您可以添加以下你Vagrantfile

config.vm.box_download_insecure = true 

然後重新運行vagrant up,它應該下載盒

+0

非常感謝你,現在流浪漢的指揮工作能夠完成這項工作。再次感謝。 –

3

問題似乎OpenSSL的關係。

請參閱以下內容:

http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/

的解決方法是讓遊民下載它在不安全的方式:

vagrant box add --insecure -c aerospike/centos-6.5 https://vagrantcloud.com/aerospike/boxes/centos-6.5/versions/3.14.1.2/providers/virtualbox.box 

vagrant init aerospike/centos-6.5 

vagrant up