tar 报错gzip: stdin: not in gzip format
时间:2016-07-25 13:15 来源:linux.it.net.cn 作者:IT
今天在linux下 用tar -zxf xxx.tar.bz2
然后就报这个错。
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
一开始我以为是压缩包坏的,去下其他的。下下来也是一样。然后仔细看了一下,原来这个压缩包没有用gzip格式压缩 所以解压的时候也不用加上z 。直接tar -xf 就可以了。
(责任编辑:IT)
今天在linux下 用tar -zxf xxx.tar.bz2 然后就报这个错。
gzip: stdin: not in gzip format
一开始我以为是压缩包坏的,去下其他的。下下来也是一样。然后仔细看了一下,原来这个压缩包没有用gzip格式压缩 所以解压的时候也不用加上z 。直接tar -xf 就可以了。 |