unpacking of archive failed

Andy Furtado awf7d0 at yahoo.com
Wed Nov 3 18:35:49 UTC 2010


I'm having a problem installing an RPM that I created that only contains %files 
to be installled on a i386 platform. 

The rpm database is currently empty so this is the first thing going in.

The problem is ...
  $ rpm -i /rpm/RPMS/i386/axis-4.0-1.i386.rpm 
error: unpacking of archive failed on file 
/device_handlers/axis/axis.so;4cd1a2a6: cpio: MD5 sum mismatch

What is actually being checksum'd during an install?

The target platform is based on FC10 but not a complete distribution.
The rpm source from rpm-4.6.1-3.fc10.src.rpm is built in an isolated build area 
using chroot. 

I'm also running rpm and rpmbuild from the same isolated build environment. 
My spec file is included below.

I'd like to perform an rpm install in this same isolated area, but having the 
problem above. 

I believe I've satified all of the dependencies required, and manually verifying 
the md5sums have proven successful. 

My searches on the internet have found instances about incompatible libs needed 
for the packaged file but I don't think that is the case since I'm building 
everything against the same set of libs. I've also tried the prelink suggestions 
that I've found. 

I feel like maybe I'm missing something (executable) that rpm needs for the 

$ rpm -Kvv /rpm/RPMS/i386/axis-4.0-1.i386.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /var/lib/rpm/Packages cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: Expected size:       458122 = lead(96)+sigs(120)+pad(0)+data(457906)
D:   Actual size:       458122
    MD5 digest: NOKEY
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages

Any information would be greatly appreciated.

Best Regards, 

Summary: Device Handler
Name: axis
Version: 4.0
Release: 1
License: GPL
BuildRoot: /device_handlers/%{name}
BuildArch: i386

%define buildroot_dest %buildroot/device_handlers/%name


RPM to install handler.

mkdir -p %buildroot_dest
cp -rv %_builddir/%name/* %buildroot_dest


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20101103/fe3d5174/attachment.html>

More information about the Rpm-list mailing list