openSUSE Forums > Applications » Weird Error With Tar

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Jun-2009, 09:34
Puzzled Penguin
 
Join Date: May 2009
Posts: 10
nick_at_seakr hasn't been rated much yet
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
Reply With Quote
  #2 (permalink)  
Old 05-Jun-2009, 10:49
Explorer Penguin
 
Join Date: Apr 2009
Posts: 674
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
  #3 (permalink)  
Old 05-Jun-2009, 11:23
Puzzled Penguin
 
Join Date: May 2009
Posts: 10
nick_at_seakr hasn't been rated much yet
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
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2