tar解压包的时候出现错误 gzip: stdin: not in gzip format

环境:Linux (CentOS Linux release 7.2.1511)

用  tar -zxvf  命令解压文件时遇到”gzip: stdin: not in gzip format“等错误:

root@java:tar -zxvf jdk-8u144-linux-x64.tar.gz
2 gzip: stdin: not in gzip format
3 tar: Child returned status 1
4 tar: Error is not recoverable: exiting now

发现这个压缩包没有用gzip格式压缩,所以不用加z参数。

改为    tar -xvf     就可以了。

如果还有问题,检查压缩包,可能是压缩包有问题。

 

 

你可能感兴趣的:(操作系统及网络)