Symptoms
- Attempt to convert CentOS 7.9 into AlmaLinux 8 with the centos2alma script crashes with errors like below:
CONFIG_TEXT: 2024-08-09 00:01:58,428 - INFO - --> Running transaction check 2024-08-09 00:01:58,428 - INFO - ---> Package leapp.noarch 0:0.14.0-1.el7 will be installed 2024-08-09 00:01:58,428 - INFO - --> Processing Dependency: python2-leapp = 0.14.0-1.el7 for package: leapp-0.14.0-1.el7.noarch 2024-08-09 00:01:58,430 - INFO - ---> Package leapp-upgrade-el7toel8-deps.noarch 1:0.19.0-7.1.el7 will be installed 2024-08-09 00:01:58,433 - INFO - --> Processing Dependency: pciutils for package: 1:leapp-upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch 2024-08-09 00:01:59,881 - INFO - --> Finished Dependency Resolution 2024-08-09 00:01:59,923 - INFO - Error: Package: leapp-0.14.0-1.el7.noarch (elevate) 2024-08-09 00:01:59,923 - INFO - Requires: python2-leapp = 0.14.0-1.el7 2024-08-09 00:01:59,923 - INFO - Installed: python2-leapp-0.16.0-2.el7.noarch (@elevate) 2024-08-09 00:01:59,923 - INFO - python2-leapp = 0.16.0-2.el7 2024-08-09 00:01:59,923 - INFO - Available: python2-leapp-0.12.1-100.20210924142320684911.master.28.g1f03432.el7.noarch (elevate) 2024-08-09 00:01:59,923 - INFO - python2-leapp = 0.12.1-100.20210924142320684911.master.28.g1f03432.el7 2024-08-09 00:01:59,923 - INFO - Available: python2-leapp-0.14.0-1.el7.noarch (elevate) 2024-08-09 00:01:59,923 - INFO - python2-leapp = 0.14.0-1.el7 2024-08-09 00:01:59,924 - INFO - Error: Package: 1:leapp-upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch (elevate) 2024-08-09 00:01:59,924 - INFO - Requires: pciutils 2024-08-09 00:01:59,924 - INFO - You could try using --skip-broken to work around the problem 2024-08-09 00:02:00,429 - INFO - You could try running: rpm -Va --nofiles --nodigest 2024-08-09 00:02:00,474 - ERROR - Command ['/usr/bin/yum', 'install', '-y', 'leapp-0.14.0-1.el7', 'python2-leapp-0.14.0-1.el7', 'leapp-data-almalinux-0.1-6.el7'] failed with return code 1 2024-08-09 00:02:00,475 - ERROR - Failed: installing leapp. The reason: Command '['/usr/bin/yum', 'install', '-y', 'leapp-0.14.0-1.el7', 'python2-leapp-0.14.0-1.el7', 'leapp-data-almalinux-0.1-6.el7']' returned non-zero exit status 1. 2024-08-09 00:02:01,039 - DEBUG - Going to write json '/usr/local/psa/var/centos2alma/actions.json' with new data 2024-08-09 00:02:02,167 - DEBUG - Sent error report 2024-08-09 00:02:02,168 - WARNING - Conversion status flag file does not exist. Skip sending conversion status 2024-08-09 00:02:02,168 - ERROR - centos2alma process has failed. Error: Failed: installing leapp. The reason: Command '['/usr/bin/yum', 'install', '-y', 'leapp-0.14.0-1.el7', 'python2-leapp-0.14.0-1.el7', 'leapp-data-almalinux-0.1-6.el7']' returned non-zero exit status 1. 2024-08-09 00:02:02,170 - INFO - Going to free lockfile '/usr/local/psa/var/centos2alma/centos2alma.lock'... ...
Cause
yum update
command installs the python2-leapp-0.16.0-2.el7.noarch
package, while the leapp-0.14.0-1.el7.noarch
specifically requires python2-leapp = 0.14.0-1.el7
. The downloaded version is causing the conversion to fail due to inconsistency.
This is a bug with ID #PAUX-6405, which is fixed in the latest script iteration 1.4.0.
Resolution
Download the latest script version from the article How to make an in-place upgrade of a Plesk server from CentOS 7 to AlmaLinux 8? and re-run the conversion.
Comments
0 comments
Please sign in to leave a comment.