User Feedback :: Bug Report: tar cannot unpack .tar.gz files.



I get errors like the following when I try to unzip / untar a .tar.gz file.  Creating .tar.gz files works with no problem in DSL.

Code Sample

dsl@box:~$ tar -xvzf testfile.tar.gz
gzip: Invalid magic
tar: Child returned status 1
tar: Error exit delayed from previous errors


Suprised this was missed when DSL was developed.  I am using the version v2.1 current.

Sometimes the error comes up like this:

Code Sample
dsl@box:~$ tar -xvzf testfile.tar.gz

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

Try placing the z option first.
I don't think the option order matters, I made a mistake not gzipping the test file that I tested there so I guess it can untar/unzip files that are tared / ziped in dsl.
I think it's more likely that your tar.gz file, or the filesystem on which it resides, is corrupt.  I tar/gzip files on other systems daily, and have no problems opening them in DSL.  Before you start FUDing up the place, please think about that...why is it that you're the only one having this trouble?
Next Page...
original here.