dnf upgrade fails on cPanel after CloudLinux 7 to 8 migration

Modified on Mon, 06 May 2024 at 05:33 PM

You may get an error similar to this after converting your server from CloudLinux 7 to 8 with cPanel:

dnf upgrade
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 0:21:02 ago on Mon 06 May 2024 04:48:42 PM CEST.
Error: 
 Problem 1: package alt-php81-percona5.7-8.1.27-1.el7.x86_64 from @System requires alt-php81-common = 8.1.27, but none of the providers can be installed
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-4.el8.x86_64 from @System
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-1.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-4.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php81-common-8.1.27-4.el8.x86_64
  - problem with installed package alt-php81-percona5.7-8.1.27-1.el7.x86_64
 Problem 2: package alt-php81-percona5.5-8.1.27-1.el7.x86_64 from @System requires alt-php81-pdo = 8.1.27, but none of the providers can be installed
  - cannot install both alt-php81-pdo-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-pdo-8.1.27-4.el8.x86_64 from @System
  - cannot install both alt-php81-pdo-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-pdo-8.1.27-1.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-pdo-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-pdo-8.1.27-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-pdo-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-pdo-8.1.27-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-pdo-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-pdo-8.1.27-4.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php81-pdo-8.1.27-4.el8.x86_64
  - problem with installed package alt-php81-percona5.5-8.1.27-1.el7.x86_64
 Problem 3: package alt-php82-percona5.7-8.2.16-1.el7.x86_64 from @System requires alt-php82-common = 8.2.16, but none of the providers can be installed
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-3.el8.x86_64 from @System
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php82-common-8.2.16-3.el8.x86_64
  - problem with installed package alt-php82-percona5.7-8.2.16-1.el7.x86_64
 Problem 4: package alt-php82-percona5.5-8.2.16-1.el7.x86_64 from @System requires alt-php82-pdo = 8.2.16, but none of the providers can be installed
  - cannot install both alt-php82-pdo-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-pdo-8.2.16-3.el8.x86_64 from @System
  - cannot install both alt-php82-pdo-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-pdo-8.2.16-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php82-pdo-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-pdo-8.2.16-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php82-pdo-8.2.16-3.el8.x86_64
  - problem with installed package alt-php82-percona5.5-8.2.16-1.el7.x86_64
 Problem 5: package alt-php83-percona5.7-8.3.3-1.el7.x86_64 from @System requires alt-php83-common = 8.3.3, but none of the providers can be installed
  - cannot install both alt-php83-common-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-common-8.3.3-3.el8.x86_64 from @System
  - cannot install both alt-php83-common-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-common-8.3.3-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php83-common-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-common-8.3.3-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php83-common-8.3.3-3.el8.x86_64
  - problem with installed package alt-php83-percona5.7-8.3.3-1.el7.x86_64
 Problem 6: package alt-php83-percona5.5-8.3.3-1.el7.x86_64 from @System requires alt-php83-pdo = 8.3.3, but none of the providers can be installed
  - cannot install both alt-php83-pdo-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-pdo-8.3.3-3.el8.x86_64 from @System
  - cannot install both alt-php83-pdo-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-pdo-8.3.3-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php83-pdo-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-pdo-8.3.3-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php83-pdo-8.3.3-3.el8.x86_64
  - problem with installed package alt-php83-percona5.5-8.3.3-1.el7.x86_64
 Problem 7: package alt-php81-mysql5.1-8.1.27-1.el7.x86_64 from @System requires alt-php81-common = 8.1.27, but none of the providers can be installed
  - package alt-php81-common-8.1.27-4.el8.x86_64 from @System requires alt-php81 = 8.1.27-4.el8, but none of the providers can be installed
  - package alt-php81-common-8.1.27-4.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php81 = 8.1.27-4.el8, but none of the providers can be installed
  - package alt-php81-common-8.1.27-1.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php81 = 8.1.27-1.el8, but none of the providers can be installed
  - package alt-php81-common-8.1.27-2.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php81 = 8.1.27-2.el8, but none of the providers can be installed
  - package alt-php81-common-8.1.27-3.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php81 = 8.1.27-3.el8, but none of the providers can be installed
  - cannot install both alt-php81-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-8.1.27-4.el8.x86_64 from @System
  - cannot install both alt-php81-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-8.1.27-1.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-8.1.27-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-8.1.27-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-8.1.27-4.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php81-8.1.27-4.el8.x86_64
  - problem with installed package alt-php81-mysql5.1-8.1.27-1.el7.x86_64
 Problem 8: package alt-php81-mysql5.0-8.1.27-1.el7.x86_64 from @System requires alt-php81-common = 8.1.27, but none of the providers can be installed
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-4.el8.x86_64 from @System
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-1.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php81-common-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php81-common-8.1.27-4.el8.x86_64 from cloudlinux-x86_64-server-8
  - package alt-php81-bcmath-8.1.28-1.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php81-common = 8.1.28-1.el8, but none of the providers can be installed
  - cannot install the best update candidate for package alt-php81-bcmath-8.1.27-4.el8.x86_64
  - problem with installed package alt-php81-mysql5.0-8.1.27-1.el7.x86_64
 Problem 9: package alt-php82-mysql5.1-8.2.16-1.el7.x86_64 from @System requires alt-php82-common = 8.2.16, but none of the providers can be installed
  - package alt-php82-common-8.2.16-3.el8.x86_64 from @System requires alt-php82 = 8.2.16-3.el8, but none of the providers can be installed
  - package alt-php82-common-8.2.16-3.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php82 = 8.2.16-3.el8, but none of the providers can be installed
  - package alt-php82-common-8.2.16-2.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php82 = 8.2.16-2.el8, but none of the providers can be installed
  - cannot install both alt-php82-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-8.2.16-3.el8.x86_64 from @System
  - cannot install both alt-php82-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-8.2.16-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php82-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-8.2.16-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php82-8.2.16-3.el8.x86_64
  - problem with installed package alt-php82-mysql5.1-8.2.16-1.el7.x86_64
 Problem 10: package alt-php82-mysql5.0-8.2.16-1.el7.x86_64 from @System requires alt-php82-common = 8.2.16, but none of the providers can be installed
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-3.el8.x86_64 from @System
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php82-common-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php82-common-8.2.16-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - package alt-php82-bcmath-8.2.18-1.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php82-common = 8.2.18-1.el8, but none of the providers can be installed
  - cannot install the best update candidate for package alt-php82-bcmath-8.2.16-3.el8.x86_64
  - problem with installed package alt-php82-mysql5.0-8.2.16-1.el7.x86_64
 Problem 11: package alt-php83-mysql5.1-8.3.3-1.el7.x86_64 from @System requires alt-php83-common = 8.3.3, but none of the providers can be installed
  - package alt-php83-common-8.3.3-3.el8.x86_64 from @System requires alt-php83 = 8.3.3-3.el8, but none of the providers can be installed
  - package alt-php83-common-8.3.3-3.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php83 = 8.3.3-3.el8, but none of the providers can be installed
  - package alt-php83-common-8.3.3-2.el8.x86_64 from cloudlinux-x86_64-server-8 requires alt-php83 = 8.3.3-2.el8, but none of the providers can be installed
  - cannot install both alt-php83-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-8.3.3-3.el8.x86_64 from @System
  - cannot install both alt-php83-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-8.3.3-2.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install both alt-php83-8.3.6-1.el8.x86_64 from cloudlinux-x86_64-server-8 and alt-php83-8.3.3-3.el8.x86_64 from cloudlinux-x86_64-server-8
  - cannot install the best update candidate for package alt-php83-8.3.3-3.el8.x86_64
  - problem with installed package alt-php83-mysql5.1-8.3.3-1.el7.x86_64

To resolve this, run the following command:

# When agreeing, make sure only alt-php packages are being erased.
dnf upgrade --allowerasing

# Make sure all alt-php packages are installed
dnf reinstall alt-php*
dnf install alt-php*

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article