Results 1 to 3 of 3

Thread: Weird Error With Tar

  1. #1

    Default 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

  2. #2

    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
    2l5L8R5he6JGWJNcFwYiwNHPzSJEkEqgWGTQSiyz6BONKfscnfmWgvq+iULB4DLa
    2wpeCAYnGD9b5rb+6BtmHm86z1sZJlWz1w9lWzDzJgIT3tN3IUswya/ijccV6/Pq
    03RqovYbqQ2XbBWQAJ2X429H5G5ZXMIFREOZb4AiaFiNar1WW/qARF+F+7TEDJqE
    06YNATpI2gGdlpOIGavWeKshQTBWrAItqgCT4kh7HnGWLTrfpHTC9z/6vXevfDHy
    BN7DrOXTSRKUTW/OvrL/l+NlgcHXdWkkPDZtTGlNelKaaDjiN1ANopnhjyrZpKb5
    ETtHT+qpWgh44244w/WItHIuv1dGAtdmd69rqlJqqj74+Z9in5FkvuHmxgQmZ7Qj
    SemUEqvdojZTkv7cA0mlS450mwGB9GgXkGUYJs2GNQBiyLMSfEyZFU0rrICNlIF7
    X5/lJpfSagBTSjSpxjA97N5u2HbhEG2Tk2gSReqsVPGWHSyg9swAtdQGpR2yEryH
    i1KyHPCfnyNYqPBn5xI6/Bvrm4BCax72X7UUiehMTQWi0gLrsGznSD/Xujs7tR0q
    lC1FjzLwlZ5Zuyd328CtGvYuzWAZVcf7UkVy2MJPkWNeZ0V9Gz9rZhJ68FSI5RhT
    VHtuDwAyLxM3tC2zcwjd
    =FN51
    -----END PGP SIGNATURE-----

  3. #3

    Default Re: Weird Error With Tar

    See the part in the original post about how "gunzip" works to uncompress the archive - since this is the case, I'm fairly sure that the file is actually a .tar.gz file. Also, after I uncompress the file, I can recompress with gzip (gzip </path/to/archive>) and then try to run "tar tzf <archive>" or "zcat <archive>|tar tf -" and I get the same error messages.

    Thanks for the response!
    -Nick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •