首頁  >  問答  >  主體

配置Laravel Homestead Vagrant box add時提示Gzip出錯

依照教學配置Homestead,在執行 vagrant box add 指令時輸入:

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:///vagrant/homestead/virtualbox.box The box

failed to unpackage properly. Please verify that the box file you're
trying to add is not corrupted and try again. The output from
attempting to unpackage (if any):

x ./box-disk1.vmdk: gzip decompression failed
bsdtar: Error exit delayed from previous errors.

#重點是紅色部分的錯誤提示,目前猜測是

  1. Vagrant、VirtualBox和Box檔案的版本不相容造成?

  2. box鏡像檔的問題?

  3. 權限問題? ……

教學中說可以使用迅雷離線下載將box檔案下載到本地後add,實測下了好多次都不行,透過wget或從原始檔案下載那速度簡直沒辦法看…

我的Vagrant是1.7.4,VirtualBox是5.0.2,BOX檔是0.2.7版本

求解決思路或問題原因。 。感謝。

PHP中文网PHP中文网2686 天前660

全部回覆(3)我來回復

  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:57:29

    呃,詭異的版本相容問題。
    用了Virtualbox 4.3.28 + 0.2.6版本的BOX檔就成功了,應該跟Virtualbox版本關係不大,主要是BOX檔的版本。

    回覆
    0
  • 为情所困

    为情所困2017-05-16 16:57:29

    我的Vagrant是1.7.4,VirtualBox是5.0.2,BOX檔案是0.2.7版本,請問一下vituralbox.box 去哪下載,下載什麼系統的box,以及是哪個版本的?

    回覆
    0
  • 漂亮男人

    漂亮男人2017-05-16 16:57:29

    感謝問題解決。
    工具下載必須從原始位址下載

    回覆
    0
  • 取消回覆