由于碰到了以下一样的问题,于是在网上找了相应的解决方案的文章,如下:
解压一些.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