Applicable to:
- Plesk for Linux
Symptoms
The following errors are being displayed after executing the dnf upgrade
or yum update
with epel enabled on AlmaLinux or CloudLinux:
CONFIG_TEXT: Error: Problem: package plesk-php74-imagick-3.7.0-0redhat.8.220415.1034.x86_64 requires libMagickCore-6.Q16.so.6()(64bit), but none of the providers can be installed
- package plesk-php74-imagick-3.7.0-0redhat.8.220415.1034.x86_64 requires libMagickWand-6.Q16.so.6()(64bit), but none of the providers can be installed
- cannot install both ImageMagick-libs-6.9.12.48-2.el8.x86_64 and ImageMagick-libs-6.9.10.86-1.el8.x86_64
- cannot install both ImageMagick-libs-6.9.10.86-1.el8.x86_64 and ImageMagick-libs-6.9.12.48-2.el8.x86_64
- cannot install the best update candidate for package plesk-php74-imagick-3.7.0-0redhat.8.220415.1034.x86_64
- cannot install the best update candidate for package ImageMagick-libs-6.9.10.86-1.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Cause
Product issue:
- #PPPM-13570 "Switched to the static ImageMagick link for PHP 7.1-8.1 on the Red Hat Enterprise Linux 8-based systems. Previously, updating the ImageMagick library in the EPEL repository on the Red Hat Enterprise Linux 8-based systems failed with the “dnf update” error."
Fixed in:- PHP Updates 13 July 2022 (Linux)
Resolution
If the issue is not fixed automatically, execute the following procedure:
1. Connect to the server via SSH
2. Clean dnf cache:
# dnf clean metadata
3. Re-run system update:
# dnf update
Note: If exclude=ImageMagick-libs
line was previously added to/etc/yum.repos.d/epel.repo
file as a temporary workaround, remove it.
Comments
6 comments
Hello,
I think some info are missing:
Is this a temporary solution?
Should the changes which are made reverted later?
When is the bug fixed?
Thanks in advance!
Greetings to all,
I encounter this problem after installing plesk, as in Rocky Linux and Almalinux, and this info does not solve this problem for me.
If any of you have found a solution I would ask you to guide us as well.
Thank you!
Anton Kuznetsov
When will this bug be solved?
I thought it would be fixed in 18.0.45 version..
I want Plesk to solve this problem as soon as soon as possible.
We're running into this issue on RHEL8 as well. We put in a ticket with Plesk Support and they confirmed the issue, as well as provided a slightly different work-around.
What did work for us:
Instead of this:
Try this:
This is a per-command fix that helped the process fully ignore the ImageMagick package requirements, so we could at least do a manual patch in the meantime.
What didn't work for us:
We edited the epel.repo file to add the excludes to each section, then cleaned the dnf caches to make sure the change would be in place. However, running `dnf update` still failed.
In our case, it looks like the ImageMagick package is being provided by a Plesk third-party repo rather than the EPEL repo, so that may need to be where the excludes should be added? But we couldn't find a matching .repo file for that Plesk third-party repo, and didn't dig too much further.
A fix for this bug is planned to be released next week. The article will be updated when the patch is released.
Please sign in to leave a comment.