Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1473067
  • 博文数量: 148
  • 博客积分: 2234
  • 博客等级: 大尉
  • 技术积分: 3225
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-17 21:34
个人简介

未来很长。

文章存档

2017年(7)

2016年(4)

2015年(1)

2014年(6)

2013年(31)

2012年(99)

分类: LINUX

2013-11-18 13:27:26

好多次用tar命令解压.tar包的时候会出现以下错误:
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

然后指令就运行了。。

阅读(13335) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~