Tag Archives: Linux tar Pack Unzip Error

Linux tar Pack Unzip Error: not in gzip format [How to Solve]

problem

When decompressing the compressed package downloaded by WGet, an error message appears as shown in the following figure:

reason

The link after the WGet address actually belongs to the link in the page. You can view the file type through the file file name instruction, but the tar instruction cannot decompress it

Solution:

Method 1:

To find the link to download again, click the download link in the browser, jump to the download interface, and right-click to copy the link from the download interface

The copied contents are as follows: https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-linux-x64.tar.gz?AuthParam=1636514896_0a94d4c8e72779d9711da0268ba788ee

Method 2:

Download it locally, upload it to the specified directory of the server through xftp and other tools, and then decompress it