解壓壓縮文件報錯gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now


壓縮包是直接weget 后面加官網上的tar包地址獲取的
 [root@xuegod43 ~]# tar -zxvf /home/hadoop/hadoop-2.6.5-src.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[root@xuegod43 ~]# tar -xvf /home/hadoop/hadoop-2.6.5-src.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now 
看文件真正的屬性,竟然是HTML

[root@xuegod43 ~]# file /home/hadoop/hadoop-2.6.5-src.tar.gz
/home/hadoop/hadoop-2.6.5-src.tar.gz: HTML document text

文件的下載鏈接不是直接指向文件,而是先指向一個頁面,在這個頁面里才是真的下載鏈接,所以在前一個頁面上直接保存文件,實際上保存的是一個頁面。

假如屬性是bz文件,就用bz文件的解壓方式。

重新獲取tar包路徑,先用瀏覽器打開,從彈出來的save 對話框里獲取下載鏈接

 

重新上傳壓縮包解壓OK


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM