How to extract .tar.gz file in ubuntu

3k views Asked by At

I want to extract an archive named kdiff3.tar.gz.

Using tar -xzvf kdiff3.tar.gz, doesn't extract the file. It gives this error:

   gzip: stdin: not in gzip format
   tar: Child returned status 1
   tar: Error exit delayed from previous errors

Using file kdiff3.tar.gz gives this message:

   kdiff3.tar.gz: HTML document, ASCII text

It would be great, if someone could help.

1

There are 1 answers

0
Dhanesh R On

The file may be not gzip file. you can try the following steps.

mv "filename".tar.gz "filename".tar
tar xvf "filename".tar