I encountered the same problem as below, so I found the corresponding solution article on the Internet, as follows:
Extract some. tar.gz
This occurs when a file is in the format of gzip: stdin: not in gzip format tar: Child returned status 1 tar: due to the previous delay error, exit solution: for some websites, the download link of an object is not directly directed to the object, but to a page first. The download link on this page is the actual download link. Therefore, you can directly Save the object on the previous page, actually, a page is saved. You can use the file command to view the file format.
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 upted during transfer. Download the file again and doNotModify
The fileInAny
Way. If downloading via FTP, be sure to set FTP client to use binary andNotASCII
Mode.Purpose:
Installation
Source: http://hi.baidu.com/meilei/blog/item/a33fc99526432e41d1135
My own solution is as follows:
The parameter f is removed. Tar-x *. tar