gzip: stdin: not in gzip format

来源:网络 文章列表 2021-03-25 219
在使用tar命令的时候报错了 gzip: stdin: not in gzip format

在使用tar命令的时候报错了 

  1. [root@localhost ~]# tar zxvf thc-ssl-dos-1.4.tar.gz
  2. gzip: stdin: not in gzip format
  3. tar: Child returned status 1
  4. tar: Error is not recoverable: exiting now

问题是因为这个下载的文件 根本不是压缩文件,而是 网页

可以看一下

  1. [root@localhost ~]# file thc-ssl-dos-1.4.tar.gz
  2. thc-ssl-dos-1.4.tar.gz: UTF-8 Unicode HTML document text, with very long lines

更直接的是可以使用cat查看,因为众所周知linux文类型和后缀没有关系 

我们虽然看到的是压缩文件

我们 可以查看一下,实际就是一个文件而不是压缩包

  1. [root@localhost ~]# more thc-ssl-dos-1.4.tar.gz
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <link rel="dns-prefetch" href="https://github.githubassets.com">
  7. <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
  8. <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
  9. <link rel="dns-prefetch" href="https://avatars2.githubusercontent.com">
  10. <link rel="dns-prefetch" href="https://avatars3.githubusercontent.com">
  11. <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  12. <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
  13. <link crossorigin="anonymous" media="all" integrity="sha512-BmnGTzITfSCD9SKlVfngZdzNq8Fa33lRq00rF1eRsg4zcCH3VtX8QtS6687+5GdeaVj1LzKyLj6+oXJLcswj6w==" rel="stylesh
  14. eet" href="https://github.githubassets.com/assets/frameworks-0669c64f32137d2083f522a555f9e065.css" />
  15. <link crossorigin="anonymous" media="all" integrity="sha512-IX5BoM4/CZcF+rw+yhDLhCjHTA1gz+F8rA3dQU3p7CFWAx1qGb+MVztQXTLG7jyLCn2kDGNZkp3pHjbL9Ac4kw==" rel="stylesh
  16. eet" href="https://github.githubassets.com/assets/site-217e41a0ce3f099705fabc3eca10cb84.css" />
  17. <link crossorigin="anonymous" media="all" integrity="sha512-0IGYt6nc+cz/zU4CV44Lb8IcwmWQlYmSAHsCzOtlyo8lLyvQz1jNirl1Ld8CbxalQ5fCiFufvxPm5RLVW+Mo4Q==" rel="style
  18. sheet" href="https://github.githubassets.com/assets/github-d08198b7a9dcf9ccffcd4e02578e0b6f.css" />
  19. <meta name="viewport" content="width=device-width">
  20. <title>THC-Archive/thc-ssl-dos-1.4.tar.gz at master ? vanhauser-thc/THC-Archive ? GitHub</title>
  21. <meta name="description" content="All releases of the security research group (a.k.a. hackers) The Hacker&#39;s Choice - vanhauser-thc/THC-Archive">
  22. <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
  23. <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
  24. <meta property="fb:app_id" content="1401488693436528">
  25. <meta name="twitter:image:src" content="https://avat

看吧,确实是网页

因此,解决的方法是重新去下载压缩文件

腾讯云限量秒杀

1核2G 5M 50元/年 2核4G 8M 74元/年 4核8G 5M 818元/年 CDN流量包 100GB 9元

版权声明

本站部分原创文章,部分文章整理自网络。如有转载的文章侵犯了您的版权,请联系站长删除处理。如果您有优质文章,欢迎发稿给我们!联系站长:QQ:1292237044
愿本站的内容能为您的学习、工作带来绵薄之力。

评论

  • 随机获取
点击刷新
精彩评论