Weird Error With Tar
I'm wondering if someone can help me out with this error I'm having with tar...it seems that the tar/gzip combination is not working correct. If I try to run the command:
tar tzf /path/to/archive.tar.gz
I get the following errors:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
If I try, instead, to do:
zcat /path/to/archive.tar.gz | tar tf -
I get:
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now
So, it's almost as if gzip/zcat is not decompressing it correctly and is feeding it to tar in the compressed format. If I "gunzip" the archive, first, then use tar on the decompressed archive, it seems to work fine - however, this is not an ideal long-term work-around. I'm running this in a XEN domU, openSuSE 11.1. I have another openSuSE 11.1 machine that seems to work fine - just not sure why. Anyone have any hints?
-Nick
|