tar -zxvf解压报错

tar解压过程中出现的错误:

[root@hadoop26 java]# tar -zxvf jdk-8u141-linux-x64.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
 
在网上找了一下,说是将参数z去掉?就可以成功,我试了下,还是一样的错误。
另外,我记忆中以gz结尾的tar包就应该用zxvf参数解压的。所以我查了一下自己错误的原因
 1 [root@hadoop26 java]# tar zxvf jdk-8u141-linux-x64.tar.gz
 2 gzip: stdin: not in gzip format
 3 tar: Child returned status 1
 4 tar: Error is not recoverable: exiting now
 5 [root@hadoop26 java]# tar -xvf jdk-8u141-linux-x64.tar.gz
 6 gzip: stdin: not in gzip format
 7 tar: Child returned status 1
 8 tar: Error is not recoverable: exiting now
 9 [root@hadoop26 java]# file jdk-8u141-linux-x64.tar.gz
10 jdk-8u141-linux-x64.tar.gz: HTML document text
11 -- 这个文件根本不是tar压缩文件,估计是前面wget的时候错误了

 

总结:找到自己的根本原因才是解决自己问题的关键,当然尝试少不了。

posted on 2018-02-01 17:50  Kid_Zora  阅读(736)  评论(0编辑  收藏  举报

导航