Tag Archives: gzip: stdin: not in gzip format tar: Child returned status 1 ta…

Error decompressing .tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 ta…

Recently, when we study shell programming, we need to download and unzip some. Tar. GZ files, but we often encounter unzip failure

[root@** media]# tar -zxvf nginx-1.10.2.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

You can use file to see what the real attributes of a file are

[root@** media]# file nginx-1.10.2.tar.gz
nginx-1.10.2.tar.gz: HTML document text

It turns out it’s HTML

The reasons for unsuccessful decompression are as follows:

The download link of the file does not directly point to the file, but points to a page first. Only in this page is the real download link, so saving the file directly on the previous page actually saves a page

If the attribute is a BZ file, use the decompression method of the BZ file

Here’s the process

Finally found that the download path error just