error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Locked
dwclogic
Posts: 7
Joined: 2019-11-25T15:29:07-07:00
Authentication code: 1152

error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by dwclogic »

I'm trying to update a version of ImageMagick we use to ImageMagick-7.0.9-5.x86_64.rpm But I am getting cannot be installed from the OS

I am using CentOS 7.6 with rpm version: RPM version 4.11.3

I did try to add an rpm macros file: /etc/rpm/macros.ImageMagick
Added to that File:
%__gpg_sign_cmd %{__gpg} gpg --force-v3-sigs --batch \
--verbose --no-armor --passphrase-fd 3 --no-secmem-warning \
-u "%{_gpg_name}" -sbo %{__signature_filename} \
--digest-algo sha256 %{__plaintext_filename}

%_source_filedigest_algorithm 8
%_binary_filedigest_algorithm 8

When I look at the [Verify Message] link on the downloads page, I see NO LINE WITH "ImageMagick-7.0.9-5.x86_64.rpm". So it appears there is no SHA256 Message Digest for this build. I do see one possible target for the digest in the list:ImageMagick-x86_64-pc-linux-gnu.tar.gz
But since it is different, I have no idea if the item is the right one, did someone update the file incorrectly, or forget to add the digest entry for this build?

Did I put the correct information into the macro above, or do I actually need to edit the {__signature_filename} to the actual filename?

Efforts to find a solution online have not yielded any positive results.

Actual Output:
sudo rpm -Uvh ImageMagick-7.0.9-5.x86_64.rpm
error: ImageMagick-7.0.9-5.x86_64.rpm: Header SHA1 digest: BAD Expected(e573a6aeadf8a1007782c0ed4252de14d6ae7517) != (0966abe41d3c1349c8d1ead56f8fd621ccac9969)
error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

This is a Centos 7.6 running on MacOS in a Parallels VM

kiatng
Posts: 1
Joined: 2019-11-26T01:25:53-07:00
Authentication code: 1152

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by kiatng »

It gave exactly the same error
error: ImageMagick-7.0.9-5.x86_64.rpm: Header SHA1 digest: BAD Expected(e573a6aeadf8a1007782c0ed4252de14d6ae7517) != (0966abe41d3c1349c8d1ead56f8fd621ccac9969)
error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed
on CenOS 6.9.

sam856
Posts: 1
Joined: 2019-11-26T03:55:17-07:00
Authentication code: 1152

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by sam856 »

I have the same issues, Centos7

dwclogic
Posts: 7
Joined: 2019-11-25T15:29:07-07:00
Authentication code: 1152

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by dwclogic »

I see that you have now posted the ImageMagick-7.0.9-6.x86_64.rpm & ImageMagick-libs-7.0.9-6.x86_64.rpm builds instead of the ...9-5... ones, now I am still having Dependency issues. I thought RMP would automatically load any needed dependancies for itself????

tried installing the libs first...
[vagrant@LAMP7741 vhosts]$ sudo rpm -Uvh ImageMagick-libs-7.0.9-6.x86_64.rpm
error: Failed dependencies:
libHalf.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libICE.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIex.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIexMath.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIlmImf.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIlmThread.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libImath.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libSM.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libXext.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libXt.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libcairo.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libfftw3.so.3()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libfontconfig.so.1()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libgdk_pixbuf-2.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libgs.so.9()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
liblcms2.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libopenjp2.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libpango-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libpangocairo-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
librsvg-2.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libtiff.so.5()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libtiff.so.5(LIBTIFF_4.0)(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libwebp.so.4()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libwmflite-0.2.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64

I tried installing the main" version then....
[vagrant@LAMP7741 vhosts]$ sudo rpm -Uvh ImageMagick-7.0.9-6.x86_64.rpm
error: Failed dependencies:
ImageMagick-libs(x86-64) = 7.0.9-6 is needed by ImageMagick-7.0.9-6.x86_64
libICE.so.6()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libMagickCore-7.Q16HDRI.so.7()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libMagickWand-7.Q16HDRI.so.7()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libMagickWand-7.Q16HDRI.so.7(VERS_7.0)(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libSM.so.6()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libXext.so.6()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libXt.so.6()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libfftw3.so.3()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libfontconfig.so.1()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
liblcms2.so.2()(64bit) is needed by ImageMagick-7.0.9-6.x86_64

Then tried the libs again because, I'm not really sure what I'm doing, LOL.
[vagrant@LAMP7741 vhosts]$ sudo rpm -Uvh ImageMagick-libs-7.0.9-6.x86_64.rpm
error: Failed dependencies:
libHalf.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libICE.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIex.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIexMath.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIlmImf.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libIlmThread.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libImath.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libSM.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libXext.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libXt.so.6()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libcairo.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libfftw3.so.3()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libfontconfig.so.1()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libgdk_pixbuf-2.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libgs.so.9()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
liblcms2.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libopenjp2.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libpango-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libpangocairo-1.0.so.0()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
librsvg-2.so.2()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libtiff.so.5()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libtiff.so.5(LIBTIFF_4.0)(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libwebp.so.4()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64
libwmflite-0.2.so.7()(64bit) is needed by ImageMagick-libs-7.0.9-6.x86_64

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by magick »

Try building from source with rpmbuild. The build will adapt to your environment. See https://www.thegeekstuff.com/2015/02/rp ... ge-example for additional help.

dwclogic
Posts: 7
Joined: 2019-11-25T15:29:07-07:00
Authentication code: 1152

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by dwclogic »

I've been working the dependancies required for this version and I am seeing these:
libMagickCore-7.Q16HDRI.so.7()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libMagickWand-7.Q16HDRI.so.7()(64bit) is needed by ImageMagick-7.0.9-6.x86_64
libMagickWand-7.Q16HDRI.so.7(VERS_7.0)(64bit) is needed by ImageMagick-7.0.9-6.x86_64

I think you may need to look into re-building this version, including these new ImageMagick components that are missing for this build.

dwclogic
Posts: 7
Joined: 2019-11-25T15:29:07-07:00
Authentication code: 1152

Re: error: ImageMagick-7.0.9-5.x86_64.rpm cannot be installed

Post by dwclogic »

I'm closing this thread due to that the issue of the Digest is resolved, since you updated the filename to the correct version that the Digest was expecting.

Locked