zoukankan      html  css  js  c++  java
  • 解压压缩文件报错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

  • 相关阅读:
    aliyun搭博客从零到一
    centos8飞行驾驶舱和docker安装
    squid的三种模式
    Linux和windos路由
    ca认证(https)
    shell脚本1
    heartbeat双主高可用
    Linux字符界面字符颜色显示
    不同尺寸的图片垂直水平居中的三种形式
    两栏三栏自适应布局
  • 原文地址:https://www.cnblogs.com/hailun1987/p/7163603.html
Copyright © 2011-2022 走看看