tar 报错gzip: stdin: not in gzip format

今天在linux下 用tar -zxvf xxx.tar.bz2

然后就报这个错。

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

解决方案:压缩包没有用gzip格式压缩, 所以解压的时候也不用加上z。直接tar -jxvf 就可以了。

原文地址:https://www.cnblogs.com/renshengbuduanxuexi/p/4208526.html