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

谁践踏了优雅 2023-10-17 22:36 111阅读 0赞

环境:Linux (CentOS Linux release 7.2.1511)

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

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

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

改为 tar -xvf 就可以了。

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

发表评论

表情:
评论列表 (有 0 条评论,111人围观)

还没有评论,来说两句吧...

相关阅读