由於碰到了以下一樣的問題,於是在網上找了相應的解決方案的文章,如下:
解壓一些.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