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

在解压tar.xz文件的时候报错
[Sun@localhost Downloads]$ tar -xzvf /data/software/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz
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 /data/software/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz
解决方法二:
1:把下载下来的文件重命名: mv apache-tomcat-6.0.26.tar.gz apache-tomcat-6.0.26.tar
2:再执行解压命令: tar -zxvf apache-tomcat-6.0.26.tar
https://www.jb51.net/LINUXjishu/348664.html
本文介绍了在Linux中遇到tar.xz文件解压错误的常见问题,原因在于压缩包未使用gzip格式。提供了解决方法,包括确认文件类型和正确使用解压命令。
9880

被折叠的 条评论
为什么被折叠?



