Unzip. tar.gz error Gzip:stdin:not in gzip format tar:/child returned status 1 Tar:error are not recoverable:exiting now

Source: Internet
Author: User

Recently studied shell programming, need to download some. tar.gz files, but often encountered decompression failure situation:

[Email protected] ~]# TAR-JXVF tcl8.4.16-src.tar.gz bzip2: (stdin) is not a bzip2 File.tar:Child returned status 2tar: Error isn't recoverable:exiting now

Today, we have studied carefully how to solve this problem:

1. What is the real property of the file?

[Email protected] ~]# TAR-ZXVF tcl8.4.16-src.tar.gz gzip:stdin:not in gzip formattar:child returned status 1tar:erro R is not recoverable:exiting Now[[email protected] ~]# file tcl8.4.16-src.tar.gz tcl8.4.16-src.tar.gz:html Document text

I race, unexpectedly is HTML, this time finally know is why.

The reasons are as follows:

File download link is not directly to the file, but first point to a page, in this page is the real download link, so on the previous page to save the file directly, actually saved is a page.

If the property is an BZ file, use the BZ file decompression method.

Add the File command:

With the file directive, we were able to identify the type of the document.

-B The file name is not displayed when the identification results are listed.
-C Displays the instruction execution process in detail to facilitate troubleshooting or analysis of the execution of the program.
-f< name File > Specify a name file with the contents of one or more file names, let file identify these files sequentially, in the format of one file name per column.
-L Displays the category of the file that the symbolic connection points to directly.
-m< Magic Digital File > Specify Magic Digital file.
-V Displays version information.
-Z try to interpret the contents of the compressed file.

2. Re-get the tar package path, first open with the browser, from the pop-up Save dialog box to get the download link

This time it's perfect!

Unzip. tar.gz error Gzip:stdin:not in gzip format tar:/child returned status 1 Tar:error are not recoverable:exiting now

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.