關於(gzip: stdin: not in gzip format tar: …)問題的解決

來源:互聯網
上載者:User

由於碰到了以下一樣的問題,於是在網上找了相應的解決方案的文章,如下:

解壓一些.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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.