Appstream Libraw too old for EPEL ImageMagick

I am experiencing a similar issue to this thread of the same name however I do not have epel-next installed or enabled:

[root@sfimg1 ~]# dnf repolist
repo id                                        repo name
appstream                                      Rocky Linux 9 - AppStream
baseos                                         Rocky Linux 9 - BaseOS
epel                                           Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264                            Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras                                         Rocky Linux 9 - Extras

[root@sfimg1 ~]# dnf install ImageMagick
Extra Packages for Enterprise Linux 9 - x86_64                                                                 7.5 MB/s |  21 MB     00:02
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64                                           1.4 kB/s | 2.5 kB     00:01
Error:
 Problem: package ImageMagick-6.9.12.93-2.el9.x86_64 from epel requires libMagickCore-6.Q16.so.7()(64bit), but none of the providers can be installed
  - package ImageMagick-6.9.12.93-2.el9.x86_64 from epel requires libMagickWand-6.Q16.so.7()(64bit), but none of the providers can be installed
  - package ImageMagick-6.9.12.93-2.el9.x86_64 from epel requires ImageMagick-libs(x86-64) = 6.9.12.93-2.el9, but none of the providers can be installed
  - conflicting requests
  - nothing provides libraw_r.so.23()(64bit) needed by ImageMagick-libs-6.9.12.93-2.el9.x86_64 from epel
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

The version of LibRaw in the Rocky appstream repository is a few minor versions behind that which ImageMagick requires:

[root@sfimg1 ~]# dnf whatprovides "*/libraw_r.so.2*"
Last metadata expiration check: 0:02:01 ago on Thu May  9 09:29:21 2024.
LibRaw-0.20.2-6.el9.i686 : Library for reading RAW files obtained from digital photo cameras
Repo        : appstream
Matched from:
Filename    : /usr/lib/libraw_r.so.20
Filename    : /usr/lib/libraw_r.so.20.0.0

LibRaw-0.20.2-6.el9.x86_64 : Library for reading RAW files obtained from digital photo cameras
Repo        : appstream
Matched from:
Filename    : /usr/lib64/libraw_r.so.20
Filename    : /usr/lib64/libraw_r.so.20.0.0

I was wondering if I’d just been running my builds at the wrong time (wouldn’t be the first time I’ve tried to spin a build while upstream repos are changing!) but I’ve tried on-and-off for the last 48 hours and haven’t had any success.

This can be worked around by installing LibRaw from the CentOS 9 Stream repositories, e.g:

dnf install ImageMagick https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/LibRaw-0.21.1-1.el9.x86_64.rpm

Steps to reproduce:

  • Launch Rocky Linux 9.3 image
  • Ensure up to date (dnf update)
  • Reboot
  • Install epel-release (dnf install epel-release)
  • Install ImageMagick (dnf install ImageMagick)
  • Have also tried with crb repo enabled (and cache cleaned & recreated in dnf) which makes no difference
1 Like

Most likely because RHEL already released 9.4 and EPEL is slightly ahead right now as built against that. Rocky 9.4 will be released soon which will resolve the problem. Until then wait until Rocky 9.4 is released, and then update/install the appropriate packages.

1 Like