vagrant box add失敗

來源:互聯網
上載者:User
關鍵字 php vagrant homestead
其實前段時間也出現過這個問題,後來以為是電腦的原因,不了了之了。
我裝好 virtualbox, vagrant,然後嘗試 vagrant box add laravel/homestead,失敗;然後我嘗試官方推薦的老方式 vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead,還是失敗,最後我把box下載下來,嘗試本地添加 vagrant box add laravel/homestead virtual.box,同樣失敗,並且三次報的錯誤都一樣:

D:\Homestead>vagrant box add laravel/homestead virtualbox.box==> box: Box file was not detected as metadata. Adding it directly...==> box: Adding box 'laravel/homestead' (v0) for provider:    box: Unpacking necessary files from: file://D:/Homestead/virtualbox.box    box:An error occurred while downloading the remote file. The errormessage, if any, is reproduced below. Please fix this error and tryagain.

是不是虛擬機器virtualbox的原因啊?是我沒安裝好還是版本的原因?
求大神告知!

回複內容:

其實前段時間也出現過這個問題,後來以為是電腦的原因,不了了之了。
我裝好virtualbox, vagrant,然後嘗試vagrant box add laravel/homestead,失敗;然後我嘗試官方推薦的老方式vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead,還是失敗,最後我把box下載下來,嘗試本地添加vagrant box add laravel/homestead virtual.box,同樣失敗,並且三次報的錯誤都一樣:

D:\Homestead>vagrant box add laravel/homestead virtualbox.box==> box: Box file was not detected as metadata. Adding it directly...==> box: Adding box 'laravel/homestead' (v0) for provider:    box: Unpacking necessary files from: file://D:/Homestead/virtualbox.box    box:An error occurred while downloading the remote file. The errormessage, if any, is reproduced below. Please fix this error and tryagain.

是不是虛擬機器virtualbox的原因啊?是我沒安裝好還是版本的原因?
求大神告知!

事實證明,google和stackoverflow才是猿類的好朋友。額,純吐槽。
stackoverflow上有幾個類似的問題,我用其中一個方法解決了,現貼出來,供有需要的小夥伴參考。

I downloaded
cUrl x64 with SSL
and replace it with the curl.exe provided by Vagrant.
In other words, I copied the curl.exe to
C:\HashiCorp\Vagrant\embedded\bin
Now it's working perfectly

原文地址

中文的回答目前是找不到任何的解決方案的,後來用google在英文網站才能找到解決的方案:遇到連本地都不能add box的時候,要安裝VS2010的運行庫。vagrant的報錯真是不科學,這種程度的錯誤提示,讓人根本摸不著頭腦。因為一般用vagrant的人基本都是開發人員,基本的運行庫都會安裝上了一遍,新手遇到這種情況完全摸不著頭腦,更別說用去google查翻好幾頁的答案。
原文地址

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.