Unable to extract in apache tomcat lab

receiving this error while extracting tomcat.

thor@host01 /opt$ ll
total 4
-rw-r–r-- 1 root root 196 Mar 12 04:42 apache-tomcat-8.tar.gz
thor@host01 /opt$ sudo tar -xvf apache-tomcat-8.tar.gz
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
thor@host01 /opt$

Hello, @ajey
How did you download the tar file? can you please paste complete command?

@ajey, Please download the exact tar file. You can follow the steps provided in the screenshot.

Download the tar file from here

1 Like

sudo curl -O https://downloads.apache.org/tomcat/tomcat-8/v8/bin/apache-tomcat-8.tar.gz;

@ajey, the url does not exists.

ok in the question it was mentioned version 8 , thats why i used 8.
thank you.