6

In 7-zip file manager I created a tar file (with many subdirectories and files inside). I uploaded this file to the Debian server but can't extract:

tar -xvfz files.tar
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I also tried tar -xvf userpics.tar but then happends just nothing.

Any ideas how to extract this file?

3 Answers 3

13

It is a tar file, not a .tar.gz

-z is for gzip

try:

tar xvf files.tar
6
  • I tried it but nothing happends. No error, nothing and the file stays as it is. May 23, 2012 at 15:32
  • if you type "file files.tar" does it say it's a tar file?
    – mulaz
    May 23, 2012 at 15:33
  • files.tar: data May 23, 2012 at 15:35
  • 1
    It is not a .tar file then. Try installing p7zip on your server and extracting the file with it. If it was a tar file it should say: files.tar: POSIX tar archive (GNU)
    – mulaz
    May 23, 2012 at 15:37
  • Strange. What is the reason it's not a tar file? I have done the same many times before (but uploading from a different computer) and it was working just fine. May 23, 2012 at 15:39
1

tar xvf files.tar

As it's not a gzip file, you don't need the z parameter.

0

Chances are its not a tar file. Do sudo apt-get install p7zip instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .