zoukankan      html  css  js  c++  java
  • 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的时候错误了

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

  • 相关阅读:
    bzoj 3035 二分答案+二分图最大匹配
    bzoj 1058 bst
    bzoj 1093 缩点+DP
    bzoj 1452 二维树状数组
    bzoj 1968 数学
    bzoj 1034 贪心
    牛客小白月赛12 I (tarjan求割边)
    Loj 103、10043 (KMP统计子串个数)
    poj 2356 (抽屉原理)
    hdu 1907 (尼姆博弈)
  • 原文地址:https://www.cnblogs.com/Kid-Zhou/p/8400295.html
Copyright © 2011-2022 走看看