LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-09-2007, 01:38 PM   #1
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Rep: Reputation: 0
tar archive gives different results


I'm trying to run installpkg on a .tgz file. My problem is installpkg says it cannot install it, the archive is corrupted. To debug the archive, I ran tar tzvf on the archive and tar returned a msg after listing the 4th or 5th file complaining about the magic number (can't remember exact msg). Installpkg has successfully installed other .tgz files from the same CD so it seems installpkg is working. I mounted the CD on a Mepis 6.0 computer and ran the same tar command on the same .tgz file. All the files in the archive listed fine!

Any idea what is going on? Is the tar archive corrupted or not?

Thanks...Randy
 
Old 10-10-2007, 06:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Perhaps the CD is scratched or dirty and the first computer running Slack cannot read it. Try to clean it out to see if it helps.
 
Old 10-10-2007, 07:32 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you have a cd-rw (or cd-r you're willing to waste), you could clone-copy the original disk (check that the copying went all right) and re-try with the new cd.
 
Old 10-10-2007, 11:33 AM   #4
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Original Poster
Rep: Reputation: 0
already tried multiple sources

Thanks for your feedback!

I have tried 2 different dvds, 1 cd-r, and a usb stick. It can't be a bad package, because I download it to my Mepis machine and look at the archive there - it appears fine. I have burned it to a dvd with growisofs, burned it to a cd with cdrecord, and copied it to a usb stick with cp. When I try the package on the Slackware install system, tar fails complaining about either a magic number or crc failure. I don't know what to do next. I'm beginning to think there is something about the hardware that is preventing tar from working - maybe???
 
Old 10-10-2007, 05:16 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Maybe its due to the older version of tar. I know one of them had an issue where the view function would not work properly. I would check the versions that are on slack and that are on your mephis install and see if they are the same. If not I would update the slackware one so that it is current.

that are unzip the archive and attempt to untar it.
 
Old 10-10-2007, 09:41 PM   #6
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
I'd be inclined to look at some good tarred pkg files with a hex editor and then do the same with the one you're having trouble with, just to get some confidence that it is at least vaguely what it claims to be.
 
Old 10-11-2007, 06:41 PM   #7
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Original Poster
Rep: Reputation: 0
exvor - thanks for the ideas. On the slackware install system, it may use a busybox tar because when I issued tar -h and tar --version I didn't get the same results as I did with the GNU tar on the Mepis system. I actually downloaded a current tar package and tried to install it on the installation system and guess what - tar had problems with the tar package!!! I'm going to try unzipping and untaring a package and putting it back together to see what happens.

tischbein - thanks for your feedback. I'm going to try the hex editor and see if there is anything obvious or different about the packages that failed.

Last edited by randyepperson; 10-11-2007 at 07:00 PM. Reason: additional info
 
Old 10-11-2007, 06:50 PM   #8
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
I don't think that tar understands .tgz files as they are used with the installpkg program.

Maybe this is the root of the issue
 
  


Reply

Tags
corrupted, installpkg, slackware, targz



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
old tar? archive maenho Linux - Software 4 12-14-2006 07:05 PM
(un)tar a certain directory from an archive Suinatsa Linux - Software 2 06-20-2006 07:09 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM
Tar archive issues yorkb Linux - Software 1 10-12-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:43 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