LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-03-2004, 03:58 AM   #1
bpw
LQ Newbie
 
Registered: Feb 2004
Location: Maine
Posts: 6

Rep: Reputation: 0
invalid tar magic error


I am running damn small linux and was trying to unwrap the tarball for zinf when I got the error message:
invalid tar magic

I tried tar -xf, tar -x and a few others with same result exexpt tar -x just stalled and nothing happened

thinking maybe it was a problem with zinf I tried a different download of zinf and got the same result again.

tried a Grip tarball and had similar results

this happens as user or root

tar -xf was working fine last time I used it

I can't think of anything I changed lately that should effect tar but I'm still new to linux so maybe I screwed it up

google searches and here showed nothing so I'm thinking this isn't very common

What does this error message mean?
any ideas on fixing it or something else to try?

Thanks
Ben
 
Old 03-03-2004, 04:19 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that the tarball is corrupt. Many filetypes will contain a certain number at a particular spot identifying the file type. This is the magic number.

Type:file zinf.tgz and see what the file command says the file is.
( ps. I guessed on the extention )
 
Old 03-03-2004, 01:50 PM   #3
bpw
LQ Newbie
 
Registered: Feb 2004
Location: Maine
Posts: 6

Original Poster
Rep: Reputation: 0
I tried your advice with the file zinf... thing and was told it was a tar archive.

Also tried booting from the Damn Small cd to see if I had messed up tar somehow and it still didn't work.
It seems there is something wrong with the file but same thing happens with grip and I have downloaded both a few times from different mirrors.

This is very odd,

Thanks for any help

Ben
 
Old 03-03-2004, 05:54 PM   #4
bpw
LQ Newbie
 
Registered: Feb 2004
Location: Maine
Posts: 6

Original Poster
Rep: Reputation: 0
had to reinstall damn small for other reasons, so tar works now, never did figure out what caused the problem...

(edit) after reinsall tar works for some things but still not grip and zinf must be something with these downloads?

Ben

Last edited by bpw; 03-03-2004 at 06:11 PM.
 
Old 03-04-2004, 08:41 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You may already have mpg123 on your system. I downloaded streamtuner and use that for listening to streams. XMMS is a very good program for listening to cd's or streams. You could also use xine.

I did have a lot of work getting all of the library files I needed to run streamripper. This is the program that streamtuner calls to record streams.

Tarballs are usually compressed with either gzip or bzip2. To decompress a .tgz file, use: tar xvzf <tarball-name>

If it was compressed with bzip2, use:
tar xvjf <tarball-name>

It is possible that one of these was used to compress the tarball but they didn't change the extension to indicate that.

Could also be that they just plain screwed up and you can't decompress or untar it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xlib: Invalid MIT-MAGIC-COOKIE-1 key bobbens Debian 2 01-17-2005 09:11 AM
gunzip: Invalid magic sceadu Linux - Software 1 01-12-2005 06:26 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
installation error: Error mounting sda1: Invalid Argument sadirmata Linux - Newbie 1 01-29-2002 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration