[leapp] Cannot in-place upgrade with PHP 8.2 installed

Solution Verified - Updated -

Issue

While in-place upgrading from RHEL 8.10 to 9.6 with PHP 8.2 installed, DNF tries to downgrade PHP packages to the version 8.0, and finally fails:

2025-07-07 16:45:49.651 DEBUG    PID: 3612721 leapp.workflow.FactsCollection.rpm_scanner: php|8.2.25|1.module+el8.10.0+22478+9eb07224|0|Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>|x86_64|RSA/SHA256, Thu 14 Nov 2024 04:27:30 PM CET, Key ID 199e2f91fd431d51
2025-07-07 16:45:49.940 DEBUG    PID: 3612721 leapp.workflow.FactsCollection.rpm_scanner: php-cli|8.2.25|1.module+el8.10.0+22478+9eb07224|0|Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>|x86_64|RSA/SHA256, Thu 14 Nov 2024 04:27:30 PM CET, Key ID 199e2f91fd431d51
 :
2025-07-07 16:48:22.33  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (952/995): php-8.2.28-1.module+el9.6.0+23063+43 2.4 MB/s | 4.7 kB     00:00    
2025-07-07 16:48:22.51  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (954/995): php-common-8.2.28-1.module+el9.6.0+2  62 MB/s | 723 kB     00:00    
2025-07-07 16:48:22.80  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (955/995): php-cli-8.2.28-1.module+el9.6.0+2306  77 MB/s | 3.6 MB     00:00    
 :
2025-07-07 16:51:42.273 DEBUG    PID: 3675796 leapp.workflow.InterimPreparation.dnf_dry_run:  php                                      x86_64  8.2.28-1.module+el9.6.0+23063+43495379    AppStream     4.7 k
2025-07-07 16:51:42.274 DEBUG    PID: 3675796 leapp.workflow.InterimPreparation.dnf_dry_run:  php-cli                                  x86_64  8.2.28-1.module+el9.6.0+23063+43495379    AppStream     3.6 M
 :
[REBOOT]
 :
Jul 07 14:55:45 localhost upgrade[954]:             Downgrading:
 :
Jul 07 14:55:45 localhost upgrade[954]:              php                                      x86_64  8.0.30-3.el9_6                            AppStream     5.2 k
Jul 07 14:55:45 localhost upgrade[954]:              php-cli                                  x86_64  8.0.30-3.el9_6                            AppStream     3.1 M
Jul 07 14:55:45 localhost upgrade[954]:              php-common                               x86_64  8.0.30-3.el9_6                            AppStream     682 k
Jul 07 14:55:45 localhost upgrade[954]:              php-fpm                                  x86_64  8.0.30-3.el9_6                            AppStream     1.6 M
Jul 07 14:55:45 localhost upgrade[954]:              php-intl                                 x86_64  8.0.30-3.el9_6                            AppStream     149 k
Jul 07 14:55:45 localhost upgrade[954]:              php-ldap                                 x86_64  8.0.30-3.el9_6                            AppStream      40 k
Jul 07 14:55:45 localhost upgrade[954]:              php-mbstring                             x86_64  8.0.30-3.el9_6                            AppStream     469 k
Jul 07 14:55:45 localhost upgrade[954]:              php-mysqlnd                              x86_64  8.0.30-3.el9_6                            AppStream     151 k
Jul 07 14:55:45 localhost upgrade[954]:              php-opcache                              x86_64  8.0.30-3.el9_6                            AppStream     511 k
Jul 07 14:55:45 localhost upgrade[954]:              php-pdo                                  x86_64  8.0.30-3.el9_6                            AppStream      82 k
Jul 07 14:55:45 localhost upgrade[954]:              php-xml                                  x86_64  8.0.30-3.el9_6                            AppStream     135 k
 :
Jul 07 14:55:45 localhost upgrade[954]:     Stderr: No matches found for the following disable plugin patterns: subscription-manager
Jul 07 14:55:45 localhost upgrade[954]:             Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp leapp-upgrade-el8toel9 python3-leapp
Jul 07 14:55:45 localhost upgrade[954]:             Error opening /var/cache/dnf/AppStream-65638f2119ce3bcc/packages/php-8.0.30-3.el9_6.x86_64.rpm: No such file or directory
Jul 07 14:55:45 localhost upgrade[954]:             Package "php-8.0.30-3.el9_6.x86_64" from repository "AppStream" has incorrect checksum
Jul 07 14:55:45 localhost upgrade[954]:             Error opening /var/cache/dnf/AppStream-65638f2119ce3bcc/packages/php-cli-8.0.30-3.el9_6.x86_64.rpm: No such file or directory
Jul 07 14:55:45 localhost upgrade[954]:             Package "php-cli-8.0.30-3.el9_6.x86_64" from repository "AppStream" has incorrect checksum
 :
Jul 07 14:55:45 localhost upgrade[954]: Following errors occurred and the upgrade cannot continue:
Jul 07 14:55:45 localhost upgrade[954]:     1. Actor: dnf_upgrade_transaction
Jul 07 14:55:45 localhost upgrade[954]:        Message: DNF execution failed with non zero exit code. 

Environment

  • Red Hat Enterprise Linux 8, 9, 10
  • leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content