LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tar xvzf xxxx.tgz encounters an error. (https://www.linuxquestions.org/questions/linux-newbie-8/tar-xvzf-xxxx-tgz-encounters-an-error-4175438844/)

chinabenjamin66 11-26-2012 09:54 PM

tar xvzf xxxx.tgz encounters an error.
 
Hello friends,

I am trying to extract a POSIX tar archive (GNU), unfortunately, I got the error below:
Code:


root@gpl-vm:/GPL/PX-8778# file PX8778_12_116534.tgz
PX8778_12_116534.tgz: POSIX tar archive (GNU)
root@gpl-vm:/GPL/PX-8778# file PX8778_12_116534.tgz
PX8778_12_116534.tgz: POSIX tar archive (GNU)
root@gpl-vm:/GPL/PX-8778# tar xvzf PX8778_12_116534.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
root@gpl-vm:/GPL/PX-8778#

what is the problem? is this archive damaged? Can any one give some suggestion? Thanks in advance.

Berhanie 11-26-2012 10:23 PM

looks like it's not gzip'ed. try it without the 'z' option.

paulsm4 11-26-2012 10:46 PM

Also try the "file" command

EXAMPLE:
file abc.tgz

EXAMPLE OUTPUT:
abc.tgz: gzip compressed data, deflated, last modified: Mon Nov 26 20:45:24 2012, os: Unix

Wim Sturkenboom 11-26-2012 11:42 PM

Quote:

Originally Posted by paulsm4 (Post 4837664)
Also try the "file" command

EXAMPLE:
file abc.tgz

EXAMPLE OUTPUT:
abc.tgz: gzip compressed data, deflated, last modified: Mon Nov 26 20:45:24 2012, os: Unix

chinabenjamin66 did use the file command (see first post) ;) But his/her results are different; it just indicates that it's a tar.

chinabenjamin66 11-27-2012 12:08 AM

Hi all, it is not gziped, tar xvf works. Thank you all.


All times are GMT -5. The time now is 10:43 PM.