帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  Linux解压tar.gz文件时提示gzip:stdin:not错误

Linux解压tar.gz文件时提示gzip:stdin:not错误

2018-04-08 15:05:13 3434

Linux解压tar.gz文件时提示gzip:stdin:not错误


在解压tar.gz文件的时候报错


[Sun@localhost Downloads]$ tar -zxvf clion-141.351.4.tar.gz
  gzip: stdin: not in gzip format
  tar: Child returned status 1
  tar: Error is not recoverable: exiting now


原因是这个压缩包没有用gzip格式压缩,所以不用加z指令

[Sun@localhost Downloads]$ tar -xvf clion-141.351.4.tar.gz


  这样就可以了


  解决方法二:


  1:把下载下来的文件重命名:

[Sun@localhost Downloads]$ mv apache-tomcat-6.0.26.tar.gz apache-tomcat-6.0.26.tar


  2:再执行解压命令:

[Sun@localhost Downloads]$ tar -zxvf apache-tomcat-6.0.26.tar


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: