关于(gzip: stdin: not in gzip format tar: ...)问题的解决

由于碰到了以下一样的问题,于是在网上找了相应的解决方案的文章,如下:

解压一些.tar.gz 格式的文件时会出现这种情况: gzip: stdin: not in gzip format tar: Child returned status 1 tar: 由于前面延迟的错误而退出  解决方法:有些网站是这样的,文件的下载链接不是直接指向文件,而是先指向一个页面,在这个页面里才是真的下载链接,所以在前一个页面上直接保存文件,实际上保存的是一个页面。 可以用file 命令查看文件的格式。


user@router> request system software add /var/tmp/junos-jseries-9.2R2.15-domestic.tgz 

gzip:
 stdin: not in gzip format
tar: Child returned status 1
tar: +CONTENTS: Not found in archive
tar: Error exit delayed from previous errors
WARNING: Cannot use /var/tmp/junos-jseries-9.2R2.15-domestic.tgz:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Solution:
This can happen when the downloaded JUNOS image file has been corrupted during transfer. Download the file again and do  not  modify the file  in  any way. If downloading via FTP, be sure to set FTP client to use binary and  not  ASCII mode. Purpose:
Installation

出处:http://hi.baidu.com/meilei/blog/item/a33fc99526432e41d1135


而我自己的解决是这样的:我自己解决的 只是把参数f给去掉了。即用的tar -x *.tar


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值