Discussion:
unpacking of archive failed...MD5 sum mismatch
John Newbigin
2008-05-07 05:31:40 UTC
Permalink
I am attempting to build an RPM for mathematica version 6.0. After some
initial problems with x86_64 libraries on a i686 system, I managed to
get the rpm to build.

I now have a 471 Meg rpm package.

When I try to install this package, I get the following error:
error: unpacking of archive failed on file
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4;48213c3a:
cpio: MD5 sum mismatch


rpm -K shows:
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK

rpm -qlp shows all the files.

I am sure there is no corruption from me copying the file. I have
repeated the build and the result is the same.

Is it possible there is a maximum size for an RPM package?

Is there something else which can cause this problem?

I am using CentOS-4.6.

Any help would be greatly appreciated.

John.
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
devzero2000
2008-05-07 10:38:21 UTC
Permalink
Perhaps the problem is due to prelink

https://bugzilla.redhat.com/show_bug.cgi?id=149465

For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in
/etc/rpm/macros.prelink

Best Regards
Post by John Newbigin
I am attempting to build an RPM for mathematica version 6.0. After some
initial problems with x86_64 libraries on a i686 system, I managed to get
the rpm to build.
I now have a 471 Meg rpm package.
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK
rpm -qlp shows all the files.
I am sure there is no corruption from me copying the file. I have repeated
the build and the result is the same.
Is it possible there is a maximum size for an RPM package?
Is there something else which can cause this problem?
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
devzero2000
2008-05-07 13:51:50 UTC
Permalink
Sorry for the imprecision. Try to "Rebuild" the package before to update
/etc/rpm/macros.prelink
Post by devzero2000
Perhaps the problem is due to prelink
https://bugzilla.redhat.com/show_bug.cgi?id=149465
For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in
/etc/rpm/macros.prelink
Best Regards
Post by John Newbigin
I am attempting to build an RPM for mathematica version 6.0. After some
initial problems with x86_64 libraries on a i686 system, I managed to get
the rpm to build.
I now have a 471 Meg rpm package.
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK
rpm -qlp shows all the files.
I am sure there is no corruption from me copying the file. I have
repeated the build and the result is the same.
Is it possible there is a maximum size for an RPM package?
Is there something else which can cause this problem?
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
body #1f7g .editable tr-fieldAttributes

id = 1f7g

class = editable tr-field

hidefocus = true

g_editable = true
PositionLeft: 0pxTop: 0px Width: 760pxHeight: 266pxOtherFont Family:arialFont
Size: 13pxAncestors

html
Children

br

br

div .gmail_quote

br

div #webdeveloper-element-information
devzero2000
2008-05-07 15:43:13 UTC
Permalink
Try also


rpm2cpio <package> >pp.cpio
cpio -it < pp.cpio

In effect it is possibile it is only a packaging problem

Regards
Post by devzero2000
Sorry for the imprecision. Try to "Rebuild" the package before to update
/etc/rpm/macros.prelink
Post by devzero2000
Perhaps the problem is due to prelink
https://bugzilla.redhat.com/show_bug.cgi?id=149465
For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in
/etc/rpm/macros.prelink
Best Regards
Post by John Newbigin
I am attempting to build an RPM for mathematica version 6.0. After
some initial problems with x86_64 libraries on a i686 system, I managed to
get the rpm to build.
I now have a 471 Meg rpm package.
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK
rpm -qlp shows all the files.
I am sure there is no corruption from me copying the file. I have
repeated the build and the result is the same.
Is it possible there is a maximum size for an RPM package?
Is there something else which can cause this problem?
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
body #1f7g .editable tr-fieldAttributes
id = 1f7g
class = editable tr-field
hidefocus = true
g_editable = true
PositionLeft: 0pxTop: 0px Width: 760pxHeight: 266pxOtherFont Family:arialFont
Size: 13pxAncestors
html
Children
br
br
div .gmail_quote
br
div #webdeveloper-element-information
John Newbigin
2008-05-08 05:15:19 UTC
Permalink
I have tried both your suggestions. Here are the results:

Turning off the prelink macro results in the same problem. This is the
output from rpm -ivv

D: undo 100755 1 ( 0, 0) 286004
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4;482289a0
GZDIO: 137907 reads, 1129734144 total bytes in 41.227427 secs
error: unpacking of archive failed on file
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4;482289a0:
cpio: MD5 sum mismatch

If I install with --nomd5 then the install succeeds.

Comparing the md5sums of the installed file with the original file shows
that the file is not corrupt.


Unpacking the archive with rpm2cpio and cpio successfully shows all the
files.

Is there somewhere else I can look?

John.
Post by devzero2000
Try also
rpm2cpio <package> >pp.cpio
cpio -it < pp.cpio
In effect it is possibile it is only a packaging problem
Regards
Sorry for the imprecision. Try to "Rebuild" the package before to
update /etc/rpm/macros.prelink
Perhaps the problem is due to prelink
https://bugzilla.redhat.com/show_bug.cgi?id=149465
For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in
/etc/rpm/macros.prelink
Best Regards
On Wed, May 7, 2008 at 7:31 AM, John Newbigin
I am attempting to build an RPM for mathematica version 6.0.
After some initial problems with x86_64 libraries on a i686
system, I managed to get the rpm to build.
I now have a 471 Meg rpm package.
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK
rpm -qlp shows all the files.
I am sure there is no corruption from me copying the file. I
have repeated the build and the result is the same.
Is it possible there is a maximum size for an RPM package?
Is there something else which can cause this problem?
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
body #1f7g .editable tr-field
Attributes
id = 1f7g
class = editable tr-field
hidefocus = true
g_editable = true
Position
Left: 0px Top: 0px
Width: 760px Height: 266px
Other
Font Family: arial
Font Size: 13px
Ancestors
html
Children
br
br
div .gmail_quote
br
div #webdeveloper-element-information
------------------------------------------------------------------------
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
John Newbigin
2008-05-08 05:18:48 UTC
Permalink
I just did rpm -V and got the following output:prelink:
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4: at
least one of file's dependencies has changed since prelinking
S.?.....
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4

This is the first build I did but it may well be related to prelink in
some way. Is there a specific detection for prelink or is it assumed
that if the md5sum is changed it must be because of prelink?

Perhaps there is something in that file which is confusing rpm. If I
get a chance I will create a package with only that file.

John.
Post by John Newbigin
Turning off the prelink macro results in the same problem. This is the
output from rpm -ivv
D: undo 100755 1 ( 0, 0) 286004
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4;482289a0
GZDIO: 137907 reads, 1129734144 total bytes in 41.227427 secs
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
If I install with --nomd5 then the install succeeds.
Comparing the md5sums of the installed file with the original file shows
that the file is not corrupt.
Unpacking the archive with rpm2cpio and cpio successfully shows all the
files.
Is there somewhere else I can look?
John.
Post by devzero2000
Try also
rpm2cpio <package> >pp.cpio
cpio -it < pp.cpio
In effect it is possibile it is only a packaging problem
Regards
Sorry for the imprecision. Try to "Rebuild" the package before to
update /etc/rpm/macros.prelink
Perhaps the problem is due to prelink
https://bugzilla.redhat.com/show_bug.cgi?id=149465
For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink prelink -y library in
/etc/rpm/macros.prelink
Best Regards
On Wed, May 7, 2008 at 7:31 AM, John Newbigin
I am attempting to build an RPM for mathematica version 6.0.
After some initial problems with x86_64 libraries on a i686
system, I managed to get the rpm to build.
I now have a 471 Meg rpm package.
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1 md5 OK
rpm -qlp shows all the files.
I am sure there is no corruption from me copying the file. I
have repeated the build and the result is the same.
Is it possible there is a maximum size for an RPM package?
Is there something else which can cause this problem?
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
-- John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
body #1f7g .editable tr-field
Attributes
id = 1f7g
class = editable tr-field
hidefocus = true
g_editable = true
Position
Left: 0px Top: 0px
Width: 760px Height: 266px
Other
Font Family: arial
Font Size: 13px
Ancestors
html
Children
br
br
div .gmail_quote
br
div #webdeveloper-element-information
------------------------------------------------------------------------
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
Valery Reznic
2008-05-08 05:53:50 UTC
Permalink
I face this problem some time ago.
After a bit of search I found following:

http://vijayk.blogspot.com/2005_08_01_archive.html
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149465

When I /usr/sbin/prelink -u <file>
for offending files the problem was gone

Valery.
Subject: Re: unpacking of archive failed...MD5 sum mismatch
Date: Thursday, May 8, 2008, 8:18 AM
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4: at
least one of file's dependencies has changed since
prelinking
S.?.....
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4
This is the first build I did but it may well be related to
prelink in
some way. Is there a specific detection for prelink or is
it assumed
that if the md5sum is changed it must be because of
prelink?
Perhaps there is something in that file which is confusing
rpm. If I
get a chance I will create a package with only that file.
John.
I have tried both your suggestions. Here are the
Turning off the prelink macro results in the same
problem. This is the
output from rpm -ivv
D: undo 100755 1 ( 0, 0) 286004
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4;482289a0
GZDIO: 137907 reads, 1129734144 total bytes in
41.227427 secs
error: unpacking of archive failed on file
cpio: MD5 sum mismatch
If I install with --nomd5 then the install succeeds.
Comparing the md5sums of the installed file with the
original file shows
that the file is not corrupt.
Unpacking the archive with rpm2cpio and cpio
successfully shows all the
files.
Is there somewhere else I can look?
John.
Post by devzero2000
Try also
rpm2cpio <package> >pp.cpio
cpio -it < pp.cpio
In effect it is possibile it is only a packaging
problem
Post by devzero2000
Regards
On Wed, May 7, 2008 at 3:51 PM, devzero2000
Sorry for the imprecision. Try to
"Rebuild" the package before to
Post by devzero2000
update /etc/rpm/macros.prelink
On Wed, May 7, 2008 at 12:38 PM, devzero2000
Perhaps the problem is due to prelink
https://bugzilla.redhat.com/show_bug.cgi?id=149465
Post by devzero2000
For test try to comment comment out the
%__prelink_undo_cmd /usr/sbin/prelink
prelink -y library in
Post by devzero2000
/etc/rpm/macros.prelink
Best Regards
On Wed, May 7, 2008 at 7:31 AM, John
Newbigin
Post by devzero2000
I am attempting to build an RPM for
mathematica version 6.0.
Post by devzero2000
After some initial problems with
x86_64 libraries on a i686
Post by devzero2000
system, I managed to get the rpm to
build.
Post by devzero2000
I now have a 471 Meg rpm package.
When I try to install this package, I
get the following
Post by devzero2000
error: unpacking of archive failed on
file
Post by devzero2000
cpio: MD5 sum mismatch
mathematica-6.0-3.el4.i386.rpm: sha1
md5 OK
Post by devzero2000
rpm -qlp shows all the files.
I am sure there is no corruption from
me copying the file. I
Post by devzero2000
have repeated the build and the result
is the same.
Post by devzero2000
Is it possible there is a maximum size
for an RPM package?
Post by devzero2000
Is there something else which can
cause this problem?
Post by devzero2000
I am using CentOS-4.6.
Any help would be greatly appreciated.
John.
-- John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and
Communication Technologies
Post by devzero2000
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Post by devzero2000
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
Post by devzero2000
body #1f7g .editable tr-field
Attributes
id = 1f7g
class = editable tr-field
hidefocus = true
g_editable = true
Position
Left: 0px Top: 0px
Width: 760px Height: 266px
Other
Font Family: arial
Font Size: 13px
Ancestors
html
Children
br
br
div .gmail_quote
br
div #webdeveloper-element-information
------------------------------------------------------------------------
Post by devzero2000
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
--
John Newbigin
ITS Senior Analyst / Programmer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.ict.swin.edu.au/staff/jnewbigin
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Jeff Johnson
2008-05-08 11:38:03 UTC
Permalink
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4: at least
one of file's dependencies has changed since prelinking
S.?.....
/opt/mathematica-6.0/SystemFiles/Libraries/Linux/libPHANToMIO.so.4
This is the first build I did but it may well be related to prelink in
some way. Is there a specific detection for prelink or is it assumed that
if the md5sum is changed it must be because of prelink?
Perhaps there is something in that file which is confusing rpm. If I get
a chance I will create a package with only that file.
Yes. prelinking changes library contents. rpm expects that the MD5 digest is
for unprelinked libraries.

prelinking is a transform applied to libraries on the client install
machine, since the prelink changes can/will be
different on every client install.

Since the build machine is also a "client", and you have packaged a
prelinked library.

The best fix (as pointed out) is to run prelink --undo on the build machine.

73 de Jeff

Loading...