gzip: stdin: not in gzip format tar: Child returned status 1. tar Error is not recoverable: exit…

Recently, we are studying log4j. Download the tar.gz.file from log4j official website. There was an error decompressing

1. wgethttps://www.apache.org/dyn/closer.lua/logging/log4j/2.10.0/apache-log4j-2.10.0-bin.tar.gz. The compressed package was downloaded successfully

2. Unzip the file

tar -zxvf apache-log4j-2.10.0-bin.tar.gz

The following error occurred:

3. All kinds of solutions searched on the Internet have not been solved

1) solution 1: this package is not compressed in gzip format, so there is no need to add Z instruction. Solution: use the $tar – xvf xxxx.tar.gz command (i.e. remove the Z parameter)

2) download the. Zip file. That is, the apache-log4j-2.10.0-bin.zip file in the figure above still has errors

RootCase:

This problem bothered me for a long time, and finally found the problem. It turned out that my link was not the final download link. Should continue to click in, the following figure appears below is the correct link. Problem solving

Similar Posts: