View Single Post
  #2 (permalink)  
Old 05-Jun-2009, 10:49
ab@novell.com ab@novell.com is offline
Explorer Penguin
 
Join Date: Apr 2009
Posts: 685
ab@novell.com hasn't been rated much yet
Default Re: Weird Error With Tar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Perhaps your extension is wrong and it's another kind of compression.
Find out:

file /path/to/archive.tar.gz

Good luck.





nick at seakr wrote:
> 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
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJKKT5rAAoJEF+XTK08PnB5VkIP/34PbT493XarOthtiR9ft8oO
2l5L8R5he6JGWJNcFwYiwNHPzSJEkEqgWGTQSiyz6BONKfscnf mWgvq+iULB4DLa
2wpeCAYnGD9b5rb+6BtmHm86z1sZJlWz1w9lWzDzJgIT3tN3IU swya/ijccV6/Pq
03RqovYbqQ2XbBWQAJ2X429H5G5ZXMIFREOZb4AiaFiNar1WW/qARF+F+7TEDJqE
06YNATpI2gGdlpOIGavWeKshQTBWrAItqgCT4kh7HnGWLTrfpH TC9z/6vXevfDHy
BN7DrOXTSRKUTW/OvrL/l+NlgcHXdWkkPDZtTGlNelKaaDjiN1ANopnhjyrZpKb5
ETtHT+qpWgh44244w/WItHIuv1dGAtdmd69rqlJqqj74+Z9in5FkvuHmxgQmZ7Qj
SemUEqvdojZTkv7cA0mlS450mwGB9GgXkGUYJs2GNQBiyLMSfE yZFU0rrICNlIF7
X5/lJpfSagBTSjSpxjA97N5u2HbhEG2Tk2gSReqsVPGWHSyg9swAt dQGpR2yEryH
i1KyHPCfnyNYqPBn5xI6/Bvrm4BCax72X7UUiehMTQWi0gLrsGznSD/Xujs7tR0q
lC1FjzLwlZ5Zuyd328CtGvYuzWAZVcf7UkVy2MJPkWNeZ0V9Gz 9rZhJ68FSI5RhT
VHtuDwAyLxM3tC2zcwjd
=FN51
-----END PGP SIGNATURE-----
Reply With Quote