Re: unpacking of archive failed...MD5 sum mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--- On Thu, 5/8/08, John Newbigin <jnewbigin@xxxxxxxxxxxxxxx> wrote:

> From: John Newbigin <jnewbigin@xxxxxxxxxxxxxxx>
> Subject: Re: unpacking of archive failed...MD5 sum mismatch
> To: "RPM Package Manager" <rpm-list@xxxxxxxxxx>
> Date: Thursday, May 8, 2008, 8:18 AM
> 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.
> 
> 
> John Newbigin wrote:
> > 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.
> > 
> > devzero2000 wrote:
> >> Try also
> >>
> >>
> >> rpm2cpio <package> >pp.cpio
> >> cpio -it < pp.cpio
> >>
> >> In effect it is possibile it is only a packaging
> problem
> >>
> >> Regards
> >>
> >> On Wed, May 7, 2008 at 3:51 PM, devzero2000
> <pinto.elia@xxxxxxxxx 
> >> <mailto:pinto.elia@xxxxxxxxx>> wrote:
> >>
> >>     Sorry for the imprecision. Try to
> "Rebuild" the package before to
> >>     update /etc/rpm/macros.prelink
> >>
> >>
> >>
> >>     On Wed, May 7, 2008 at 12:38 PM, devzero2000
> <pinto.elia@xxxxxxxxx
> >>     <mailto:pinto.elia@xxxxxxxxx>> wrote:
> >>
> >>         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
> >>         <jnewbigin@xxxxxxxxxxxxxxx
> <mailto:jnewbigin@xxxxxxxxxxxxxxx>>
> >>         wrote:
> >>
> >>             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
> >>
> >>            
> _______________________________________________
> >>             Rpm-list mailing list
> >>             Rpm-list@xxxxxxxxxx
> <mailto:Rpm-list@xxxxxxxxxx>
> >>            
> 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
> >> Rpm-list@xxxxxxxxxx
> >> 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
> Rpm-list@xxxxxxxxxx
> 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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux