gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with:
tar -xvf xxxxxx.x.x.tar
I would go back and re-gzip the tar file though (to save space):
gzip xxxxxx.x.x.tar
tar: Child returned status 1
tar: Error exit delayed from previous errors
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with:
tar -xvf xxxxxx.x.x.tar
I would go back and re-gzip the tar file though (to save space):
gzip xxxxxx.x.x.tar
tar -zxvf xxxxxx.x.x.tar.gz
想刨根问底的可以查下他的意思,在看下TAR 指令的用法,。
总之:我出现这个错误时,就是把指令改为:
tar -xvf xxxx.tar.gz
然后指令就运行了。。
本文详细解析了在使用tar命令时遇到gzip与tar使用冲突导致的错误,提供了有效的解决方法,包括重新压缩tar文件及正确使用tar命令的建议,帮助开发者避免常见错误并高效解决问题。
1867

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



