Linux里tar解压时报child,LINUX:解压问题tar: Child returned status

解压某个文件时

#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

然后指令就运行了。。

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

时间: 07-13

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值