Page 1 of 1

MD5 sum mismatch

Posted: 2009-06-22T19:29:54-07:00
by dognose
Trying to update my IM source rpm.. what's going on with the md5 sum?

rpm -ivh ImageMagick.src.rpm
1:ImageMagick warning: user cristy does not exist - using root
warning: group cristy does not exist - using root
########################################### [100%]
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/ImageMagick-6.5.3-10.tar.bz2;4a403dc7: cpio: MD5 sum mismatch

Re: MD5 sum mismatch

Posted: 2009-06-23T05:49:47-07:00
by magick
Perhaps the download got corrupted. Your command installed the source RPM for us without complaint. Does your download match this signature?
  • sha256sum ImageMagick-6.5.3-10.src.rpm
    9e17340e919f25a434e3be010374ebbab9d439c63ed1d7d139fa7babdbc76998 ImageMagick-6.5.3-10.src.rpm

Re: MD5 sum mismatch

Posted: 2009-06-24T11:01:08-07:00
by dognose
# sha256sum ImageMagick.src.rpm
9e17340e919f25a434e3be010374ebbab9d439c63ed1d7d139fa7babdbc76998 ImageMagick.src.rpm

Re: MD5 sum mismatch

Posted: 2009-06-24T11:22:28-07:00
by magick
We downloaded and installed on three different Linux OS'es without complaint. We're not sure why its failing for you.

Re: MD5 sum mismatch

Posted: 2009-06-30T06:21:30-07:00
by hodge
This is failing for me also.
$ rpm -ivh Downloads/ImageMagick-6.5.4-1.x86_64.rpm
Preparing... ########################################### [100%]
1:ImageMagick ########################################### [100%]
error: unpacking of archive failed on file /usr/bin/animate;4a4a1228: cpio: MD5 sum mismatch
$ uname -a
Linux dropgen-1 2.6.27.5-117.fc10.x86_64 #1 SMP Tue Nov 18 11:58:53 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

Could it be related to this?
https://bugzilla.redhat.com/bugzilla/sh ... ?id=149465

Re: MD5 sum mismatch

Posted: 2009-10-05T18:54:58-07:00
by MentalPower
I'm having the same issue...

[root@lava mentalpower]# sha256sum ImageMagick.src.rpm
def91d2b2bdc7cdc5367d9960510c6f5b10494bf9d7cb43c4b6c7f1370b8bd10 ImageMagick.src.rpm
[root@lava mentalpower]# rpmbuild --rebuild -vv ImageMagick.src.rpm
Installing ImageMagick.src.rpm
D: Expected size: 9042113 = lead(96)+sigs(180)+pad(4)+data(9041833)
D: Actual size: 9042113
D: InstallSourcePackage: Header SHA1 digest: OK (822ce2ed2d205aa89b1223e0f502e54b8964a688)
D: ========== Directories not explicitly included in package:
D: 0 /usr/src/redhat/SOURCES/
D: 1 /usr/src/redhat/SPECS/
D: ==========
warning: user cristy does not exist - using root
warning: group cristy does not exist - using root
D: undo 100664 1 ( 0, 0) 9054094 /usr/src/redhat/SOURCES/ImageMagick-6.5.6-8.tar.bz2;4acaa1a1
GZDIO: 1106 reads, 9060352 total bytes in 0.046814 secs
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/ImageMagick-6.5.6-8.tar.bz2;4acaa1a1: cpio: MD5 sum mismatch
error: ImageMagick.src.rpm cannot be installed
D: May free Score board((nil))
[root@lava mentalpower]# uname -a
Linux lava.norganna.org 2.6.18-53.1.19.el5 #1 SMP Wed May 7 08:22:53 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@lava mentalpower]#

The workaround posted on https://bugzilla.redhat.com/show_bug.cgi?id=149465 and http://vijayk.blogspot.com/2005/08/cpio ... eated.html of commenting out the /etc/rpm/macros.prelink statement doesn't work for me.

Any ideas?

Re: MD5 sum mismatch

Posted: 2009-11-23T09:46:41-07:00
by pwnedd
Same thing here when attempting to install on CentOS 5.4 64-bit:

Code: Select all

wget ftp://ftp.imagemagick.org/pub/ImageMagick/linux/SRPMS/ImageMagick.src.rpm
...
rpm -ivh ImageMagick.src.rpm 
   1:ImageMagick            warning: user cristy does not exist - using root
warning: group cristy does not exist - using root
########################################### [100%]
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/ImageMagick-6.5.7-10.tar.bz2;4b0abbd7: cpio: MD5 sum mismatch
I've tried downloading several times using both web-browser/wget from both HTTP/FTP sources, result is always the same.

Code: Select all

sha256sum ImageMagick.src.rpm 
a3cedae61f01c77d941a76d5c5042a11ffa1b974a13bac57ef0724d43aa19a25  ImageMagick.src.rpm

sha256sum ImageMagick-6.5.7-10.src.rpm 
a3cedae61f01c77d941a76d5c5042a11ffa1b974a13bac57ef0724d43aa19a25  ImageMagick-6.5.7-10.src.rpm

Any ideas?

Re: MD5 sum mismatch

Posted: 2009-11-23T10:03:24-07:00
by magick
Use this command:
  • rpm --nomd5 -ivh ImageMagick.src.rpm

Re: MD5 sum mismatch

Posted: 2009-11-23T10:16:37-07:00
by pwnedd
Hello,

Thanks for the quick reply and suggestion! What I'm actually attempting to do is build an RPM from source (http://www.imagemagick.org/Usage/api/#building). Unfortunately the rpmbuild command has no "--nomd5" switch. It does have a "--nosignature" switch, however, that didn't resolve the problem:

Code: Select all

nice rpmbuild --define="_topdir $rpmdir" --nodeps --rebuild --nosignature ImageMagick*.src.rpm
Installing ImageMagick.src.rpm
warning: user cristy does not exist - using root
warning: group cristy does not exist - using root
error: unpacking of archive failed on file /tmp/imagemagick-rpmbuild/SOURCES/ImageMagick-6.5.7-10.tar.bz2;4b0ac4e6: cpio: MD5 sum mismatch
error: ImageMagick.src.rpm cannot be installed
Any suggestions? In the mean-time I will try using 6.5.8 beta.

Thanks!

Re: MD5 sum mismatch

Posted: 2009-11-23T12:27:39-07:00
by magick
Recent releases of Fedora use sha256 checksums. Try this:
  • rpm -i --nomd5 ImageMagick.src.rpm
    rpmbuild -ba ImageMagick.spec

Re: MD5 sum mismatch

Posted: 2009-11-23T12:33:00-07:00
by pwnedd
sudo rpm -i --nomd5 ImageMagick.src.rpm
sudo rpmbuild -ba /usr/src/redhat/SPECS/ImageMagick.spec

Error: Failed build dependencies:
giflib-devel is needed by ImageMagick-6.5.7-10.x86_64
perl-devel is needed by ImageMagick-6.5.7-10.x86_64
djvulibre-devel is needed by ImageMagick-6.5.7-10.x86_64
Progress! :)

Now I'm going to have to keep my fingers crossed to see if recent enough versions of those libraries are available in the CentOS repos, or more likely, build with the --nodeps switch.

Thanks again!

Re: MD5 sum mismatch

Posted: 2009-11-24T22:07:59-07:00
by anthony
You can download the source files and build the RPM source from that.
I do this myself from the SVN repository (very bleeding edge).

As a bonus you can modify the "ImageMagick.spec.in" file
in the source before building the SRPM package.
For example I like to add the configuration items
--with-autotrace
--disable-openmp
in that file before building my own SRPM.

Just type
configure
make srpm

after that proceedure as as per Build Imagemagick RPMs
http://www.imagemagick.org/Usage/api/#building