码迷,mamicode.com
首页 > 系统相关 > 详细

LINUX:解压问题tar: Child returned status

时间:2016-07-15 23:39:56      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:

解压某个文件时

#tar -zxvf xxxxx.tar.gz

出现下面的错误提示:

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 -zxvf xxxxxx.x.x.tar.gz

想刨根问底的可以查下他的意思,在看下TAR 指令的用法,。

总之:我出现这个错误时,就是把指令改为:

tar -xvf xxxx.tar.gz

然后指令就运行了。。

若此法不管用,只能再想别的方法了

LINUX:解压问题tar: Child returned status

标签:

原文地址:http://www.cnblogs.com/exmyth/p/5674594.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!