rpm error: unpacking of archive failed: cpio: Bad magic

General support questions including new installations
Post Reply
xzby
Posts: 1
Joined: 2013/11/21 20:10:59

rpm error: unpacking of archive failed: cpio: Bad magic

Post by xzby » 2013/11/21 20:23:27

sudo rpm -ivh *.el6.rpm *.fc20.rpm
error: unpacking of archive failed: cpio: Bad magic
--nomd5 --nodigest it still
rpm5.0.0 http://rpm5.org/files/rpm/rpm-5.0
makefile LIBS= -lz -lpopt -beecrypt
sudo make make install succeed
rpm -ivh .el5.rpm all right
but centos5 /usr/local/bin/rpm -ivh .el6.rpm error: unpacking of archive failed: cpio: Bad magic
ldd librpm*
all be
centos5 libc glibc glib too low level?
yum install
these not find
why?
centos 5 different code with 6 include rpm package?
whoes is centos5 have a try and tell me whether you can -ivh el6.rpm?
what print?
Last edited by xzby on 2013/11/21 21:20:01, edited 1 time in total.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: rpm error: unpacking of archive failed: cpio: Bad magic

Post by avij » 2013/11/21 20:43:47

You can't install CentOS 6 or Fedora 20 RPMs on CentOS 5.

Which package are you trying to install? Perhaps there's a package that will work with CentOS 5.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: rpm error: unpacking of archive failed: cpio: Bad magic

Post by TrevorH » 2013/11/21 23:15:33

And installing a newer version of rpm is unlikely to help in the long run since it's likely to just either confuse things or break them.

The correct way to deal with situations like this is to download the SRPM for fc20 and rebuild it on el5 using the el5 toolset and produce an RPM that's designed to install on el5 in the first place. You may still run into trouble with things from fc20 needing newer packages and/or being built with systemd not sysv initscripts in mind...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply