Failed Extracting with "tar"


This is the error I’m facing while working on this lab

Hi @adesolaridwan2003,
Seems like file is not downloaded correctly.

I checked the tomcat version and this file is no longer available in the given link.
Please try the latest version.

Index of /tomcat/tomcat-8/v8.5.78/bin (apache.org)

Install the correct archive file and then try to extract it. It should work.

Regards,
KodeKloud Support

You will see all the available latest versions in the link below: -

Index of /tomcat (apache.org)

Hi @adesolaridwan2003 your missing a z in your tar parameter. Try with:

tar zxvf apache...

Regards,
KodeKloud Support

Maybe check the downloaded file with the “file” command to validate its a gzipped file:

file apache-tomcat-8.5.69.tar.gz

This should tell you this is a “gzip compressed file”. I noticed recently that when un-tarring a gzipped file without specifying the “-z”, the command uncompresses and unarchives the file correclty.

Cheers,
-BillR.

Use
tar -xvzf to extract tar.gz files.