LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-30-2006, 10:25 PM   #1
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Rep: Reputation: 15
smart package manager bad magic cpio error


hi all, i have searched the net for more answers on this but I cant find any useful info, I'm not sure if it's to do with the program itself or my build of suse 10.1 but from the command line version of smart when i try to fix or upgrade certain packages it gives me the error "error: unpacking of archive failed: cpio: Bad magic" I get this error on two different machines aswell. also using kpackage to install the same packages comes up with an error saying it's a delta rpm, reconfigure it to rpm format.
 
Old 07-31-2006, 08:36 AM   #2
Lytse Flap
LQ Newbie
 
Registered: Mar 2006
Location: Odense V (DK)
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
http://forums.suselinuxsupport.de/in...howtopic=16111
 
Old 07-31-2006, 10:19 PM   #3
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Original Poster
Rep: Reputation: 15
thanks for the link however it does not resolve my problem, i have been using the same version of cpio since i installed it as there have been no upgrades, after a bit of reading it seems it's definitely an issue with processing of delta rpms as thats what all the erronious packages are. I thought it might have to do with the fact that I've put a lock on updating the kernel as last time i upgraded it the machine stuffed up. Tried to upgrade it now but it wont let me, comes up with the same bad magic error as all other packages. anyone have any other ideas?
 
Old 08-03-2006, 03:51 AM   #4
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Original Poster
Rep: Reputation: 15
hmmm, well after a couple of days of screwing around with this I finally figured out what the issue was, it would of been good if someone knew the answer already and the above link wasn't exactly explanatory. To make sure noone goes through the same pain in finding the solution I'll explain it in this forum and hopefully google or whatever will be smart enough to pick it up someday.

The bad magic error has nothing to do with the smart package manager itself but the fact that suse cannot use delta rpms(small update files, google it) to install updates or any packages from. In using the guru version of smart, as most of you would be I didn't put any form of priority on certain servers (as alot of you wouldnt either) and recieved delta or otherwise corrupt rpms from third party sources. The packages that were downloaded like this gave back a bad magic error.

What you need to do is delete any update rpms that dont work and redownload them via the primary update channel(from the suse ftp) or any other channel you know works perfect; do this by either putting a priority on these channels or disabling any other channels and downloading it, try installing the package then, it should work fine.

This may seem like something trivial to some but it had me banging my head against a brick wall trying to sort it out; but then I guess I'm a newbie.
 
Old 10-01-2006, 12:09 AM   #5
volution
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
smart -- bad magic

you will also get the bad magic cpio error if you have multiple channels that point to the “what seems to be the same package”. across servers is not a problem, but from the same server, but dif component – example

[suse-101-apt-update] - components = update
[suse-101-apt-security] -- components = security
both are from the same baseurl -- but are incompatible
 
Old 04-10-2012, 10:41 AM   #6
iggi
LQ Newbie
 
Registered: Nov 2007
Posts: 29

Rep: Reputation: 16
How I solved the issue (custom repository):

createrepo --exclude='*.delta.rpm' .

Delta-RPMS should not be included... otherwise zypper complains:

Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed: cpio: Bad magic
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error in Smart Package Manager using FC5 solar1951 Fedora 0 07-13-2006 08:29 AM
Fedora install problem "error 2 reading header: cpio: Bad Magic" galois007 Linux - Software 0 03-09-2006 10:41 PM
Error 2: reading header: cpio: Bad magic sujitshah Linux - Software 1 03-20-2004 10:37 AM
Error 2 Reading Header: Cpio: Bad Magic rakoo Red Hat 2 03-12-2004 03:29 PM
Error 2 Reading Header: Cpio: Bad Magic rakoo Red Hat 0 03-10-2004 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:06 AM.

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