vagrant添加box错误:x ./box-disk1.vmdk: gzip decompression failed....
添加box的时候出现以下错误,怎么办?
D:\developer>vagrant box add laravel/homestead D:\virtualbox.box
==> box: Adding box 'laravel/homestead' (v0) for provider:
box: Downloading: file://D:/virtualbox.box
box: Progress: 100% (Rate: 445M/s, Estimated time remaining: --:--:--)
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.EXE: Error exit delayed from previous errors.
D:\developer>vagrant box add laravel/homestead D:\virtualbox.box
==> box: Adding box 'laravel/homestead' (v0) for provider:
box: Downloading: file://D:/virtualbox.box
box: Progress: 100% (Rate: 445M/s, Estimated time remaining: --:--:--)
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.EXE: Error exit delayed from previous errors.
3 个回复
nidedd
赞同来自:
最后通过
"vagrant box add laravel/homestead https://atlas.hashicorp.com/la ... ot%3B
成功安装了0.2.7版本,然后又尝试把0.2.3版本的包下载下来,通过
"vagrant box add lrv1 d:/virtualbox.box"
也成功了。
期间也尝试了更换vagrant版本和virtualbox版本来尝试,但是木有成功,感觉和包的版本有点关系吧。
最后成功版本:
win8.1 64位 ,vagrant 1.7.2 , virtualbox 4.3.16, homestead 0.2.7, 0.2.3
nidedd
赞同来自:
cuevven
赞同来自:
如果使用迅雷下载virtualbox.box,请一定要勾选中,“只从源地址下载”,不要开启离线下载和高速通道,不要开启离线下载和高速通道,不要开启离线下载和高速通道。
下载下来的文件,文件名应该是“hc-download”,无后缀,下载完成后,自己把.box加上去就是了。
源地址:https://atlas.hashicorp.com/la ... x.box
从源下载,速度很慢,找个网速快的时段挂着吧。
或者终端里在线安装。如果中途断开了,加个参数 -c 继续下载
vagrant box add laravel/homestead -c
完毕。