Leapp upgrade from centos 7.9 to alama 8

Hi, I followed the guildence on How to Migrate From CentOS 7 to AlmaLinux 8 (tecmint.com), Migrate from CentOS 7 to AlmaLinux 8 – LUNUX.NET.

But when I try to execute leapp upgrade, I got the following errors.

(1862/1864): doxygen-1.8.14-12.el8.x86_64.rpm    16 MB/s | 3.9 MB     00:00    
(1863/1864): epel-release-8-18.el8.noarch.rpm   298 kB/s |  24 kB     00:00    
(1864/1864): zenity-3.28.1-2.el8.x86_64.rpm     1.2 MB/s | 4.0 MB     00:03    
--------------------------------------------------------------------------------
Total                                           6.7 MB/s | 1.8 GB     04:31     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

STDERR:
Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
No matches found for the following disable plugin patterns: subscription-manager
Repository extras is listed more than once in the configuration
Repository extras-source is listed more than once in the configuration
Warning: Package marked by Leapp to install not found in repositories metadata: python3-nss ldns-utils ivy-local python3-javapackages
Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey
RPM: warning: Generating 6 missing index(es), please wait...
Error: Transaction test error:
  file /usr/lib64/.libcrypto.so.1.1.1k.hmac from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/.libssl.so.1.1.1k.hmac from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/engines-1.1/afalg.so from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/engines-1.1/capi.so from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/engines-1.1/padlock.so from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/libcrypto.so.1.1.1k from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64
  file /usr/lib64/libssl.so.1.1.1k from install of openssl-libs-1:1.1.1k-9.el8_7.x86_64 conflicts with file from package openssl11-libs-1:1.1.1k-5.el7.x86_64



============================================================
                       END OF ERRORS                        
============================================================


Debug output written to /var/log/leapp/leapp-upgrade.log

============================================================
                           REPORT                           
============================================================

A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt

============================================================
                       END OF REPORT                        
============================================================

Answerfile has been generated at /var/log/leapp/answerfile
2023-04-21 10:52:32.526 ERROR    PID: 18868 leapp: Upgrade workflow failed, check log for details
[root@localhost ~]#

I have tried yum reinstall openssl11-libs openssl-libs and so on, but it still failed with the same errors.

openssl-libs is required by system apps, so I tried to uninstall another openssl11-libs package. Now the update process seems ok.

However, when I reboot the system, the boot entry is still centos 7 not alma 8.

The final logs of leapp upgrade is the following.

......
Transaction Summary
=============================================================================================================================================
Install     529 Packages
Upgrade    1280 Packages
Remove      232 Packages
Downgrade    28 Packages

Total size: 1.9 G
DNF will only download packages, install gpg keys, and check the transaction.
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Complete!
====> * add_upgrade_boot_entry
        Add new boot entry for Leapp provided initramfs.
A reboot is required to continue. Please reboot your system.


Debug output written to /var/log/leapp/leapp-upgrade.log

============================================================
                           REPORT                           
============================================================

A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt

============================================================
                       END OF REPORT                        
============================================================

Answerfile has been generated at /var/log/leapp/answerfile
[root@localhost ~]#

And the final logs of the reboot are shown in the following. And reboot again, the boot entry is all centos 7 not alma 8.

I found some errors about node/npm in leapp-report.txt, So I tried to uninstall node before another try.

Transaction couldn't start:
file /usr/lib/node_modules/npm/docs from install of npm-1:6.14.11-1.10.24.0.1.module_el8.3.0+2047+b07ac28e.x86_64 conflicts with file from package nodejs-2:16.20.0-1nodesource.x86_64
Error: Could not run transaction.

After I removed node package, I managed to upgrade centos 7.9 to almalinux 8.7.

Now I am trying to upgrade almalinux 8 to almalinux 9, and I followed the links How To Upgrade to AlmaLinux 9 from AlmaLinux 8 - TechViewLeo and How to migrate from CentOS to AlmaLinux - Linux Tutorials - Learn Linux Configuration.

But when I tried to install/update leapp-upgrade tool, it failed.

[root@localhost ~]# curl https://repo.almalinux.org/elevate/testing/elevate-testing.repo -o /etc/yum.repos.d/elevate-testing.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   437  100   437    0     0    520      0 --:--:-- --:--:-- --:--:--   520
[root@localhost ~]# ls /etc/yum.repos.d/ | grep elevate
elevate-testing.repo
[root@localhost ~]# rpm --import https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate
[root@localhost ~]# dnf clean all && dnf repolist
[root@localhost ~]#
[root@localhost ~]# yum install -y leapp-upgrade leapp-data-almalinux
CentOS-7 - SCLo rh                                                    226 kB/s |  18 MB     01:21    
AlmaLinux 8 - BaseOS                                                  2.7 MB/s | 6.3 MB     00:02    
AlmaLinux 8 - AppStream                                               2.6 MB/s |  12 MB     00:04    
AlmaLinux 8 - Extras                                                   12 kB/s |  19 kB     00:01    
Docker CE Stable - x86_64                                              38 kB/s |  41 kB     00:01    
ELevate Testing                                                        31 kB/s |  71 kB     00:02    
Extra Packages for Enterprise Linux 8 - x86_64                        4.3 MB/s |  14 MB     00:03    
google-chrome                                                         4.4 kB/s | 3.6 kB     00:00    
MySQL 8.0 Community Server                                            1.0 MB/s | 2.9 MB     00:02    
MySQL Connectors Community                                             50 kB/s |  55 kB     00:01    
MySQL Tools Community                                                 437 kB/s | 925 kB     00:02    
Node.js Packages for Enterprise Linux 7 - x86_64                      146 kB/s | 674 kB     00:04    
Trzsz Repo                                                            2.2 kB/s | 7.3 kB     00:03    
Yarn Repository                                                       272 kB/s | 316 kB     00:01    
Package leapp-data-almalinux-0.1-6.el7.noarch is already installed.
Error: 
 Problem: package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch conflicts with leapp-upgrade-el8toel9 provided by leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch
  - package leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch conflicts with leapp-upgrade-el7toel8 provided by leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
  - cannot install the best candidate for the job
  - problem with installed package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
(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)
[root@localhost ~]# dnf remove leapp*
Error: 
 Problem 1: package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - conflicting requests
  - problem with installed package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
 Problem 2: package python2-leapp-0.14.0-1.el7.noarch requires leapp-framework-dependencies = 5, but none of the providers can be installed
  - conflicting requests
  - problem with installed package python2-leapp-0.14.0-1.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]# yum remove leapp*
Error: 
 Problem 1: package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch requires leapp-repository-dependencies = 6, but none of the providers can be installed
  - conflicting requests
  - problem with installed package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
 Problem 2: package python2-leapp-0.14.0-1.el7.noarch requires leapp-framework-dependencies = 5, but none of the providers can be installed
  - conflicting requests
  - problem with installed package python2-leapp-0.14.0-1.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]#
[root@localhost ~]# yum install -y leapp-upgrade leapp-data-almalinux
Last metadata expiration check: 2:00:31 ago on Sat 22 Apr 2023 06:19:10 AM CST.
Package leapp-data-almalinux-0.1-6.el7.noarch is already installed.
Error: 
 Problem: package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch conflicts with leapp-upgrade-el8toel9 provided by leapp-upgrade-el8toel9-0.17.0-3.el8.noarch
  - package leapp-upgrade-el8toel9-0.17.0-3.el8.noarch conflicts with leapp-upgrade-el7toel8 provided by leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
  - conflicting requests
  - problem with installed package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
(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)
[root@localhost ~]# yum install -y leapp-upgrade leapp-data-almalinux --allowerasing
Last metadata expiration check: 2:01:10 ago on Sat 22 Apr 2023 06:19:10 AM CST.
Package leapp-data-almalinux-0.1-6.el7.noarch is already installed.
Error: 
 Problem: package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch conflicts with leapp-upgrade-el8toel9 provided by leapp-upgrade-el8toel9-0.17.0-3.el8.noarch
  - package leapp-upgrade-el8toel9-0.17.0-3.el8.noarch conflicts with leapp-upgrade-el7toel8 provided by leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
  - conflicting requests
  - problem with installed package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]# yum install -y leapp-upgrade leapp-data-almalinux --allowerasing --skip-broken
Last metadata expiration check: 2:01:41 ago on Sat 22 Apr 2023 06:19:10 AM CST.
Package leapp-data-almalinux-0.1-6.el7.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost ~]#

After I comment exclude in /etc/yum.conf. Now I can remove leapp* and install the new version now.

[root@localhost ~]# vim /etc/yum.conf 
[root@localhost ~]# yum remove leapp*
Dependencies resolved.
=================================================================================================================================
 Package                            Architecture    Version                                              Repository         Size
=================================================================================================================================
Removing:
 leapp                              noarch          0.14.0-1.el7                                         @elevate           60 k
 leapp-data-almalinux               noarch          0.1-6.el7                                            @elevate          1.7 M
 leapp-deps-el8                     noarch          5.0.8-100.202203181036Z.249925a3.master.el8          @System             0  
 leapp-repository-deps-el8          noarch          5.0.8-100.202203181036Z.249925a3.master.el8          @System             0  
 leapp-upgrade-el7toel8             noarch          1:0.16.0-6.el7.elevate.8                             @elevate          2.6 M
Removing dependent packages:
 python2-leapp                      noarch          0.14.0-1.el7                                         @System           628 k

Transaction Summary
=================================================================================================================================
Remove  6 Packages

Freed space: 4.9 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                         1/1 
  Erasing          : leapp-0.14.0-1.el7.noarch                                                                               1/6 
  Erasing          : leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch                                                  2/6 
  Erasing          : python2-leapp-0.14.0-1.el7.noarch                                                                       3/6 
  Erasing          : leapp-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                                       4/6 
  Erasing          : leapp-repository-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                            5/6 
  Erasing          : leapp-data-almalinux-0.1-6.el7.noarch                                                                   6/6 
  Running scriptlet: leapp-data-almalinux-0.1-6.el7.noarch                                                                   6/6 
  Verifying        : leapp-0.14.0-1.el7.noarch                                                                               1/6 
  Verifying        : leapp-data-almalinux-0.1-6.el7.noarch                                                                   2/6 
  Verifying        : leapp-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                                       3/6 
  Verifying        : leapp-repository-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                            4/6 
  Verifying        : leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch                                                  5/6 
  Verifying        : python2-leapp-0.14.0-1.el7.noarch                                                                       6/6 

Removed:
  leapp-0.14.0-1.el7.noarch                                                                                                      
  leapp-data-almalinux-0.1-6.el7.noarch                                                                                          
  leapp-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                                                              
  leapp-repository-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch                                                   
  leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch                                                                         
  python2-leapp-0.14.0-1.el7.noarch                                                                                              

Complete!
[root@localhost ~]#
[root@localhost ~]# yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el8.noarch.rpm
Last metadata expiration check: 1:37:58 ago on Sat 22 Apr 2023 01:13:05 PM CST.
elevate-release-latest-el8.noarch.rpm                                                            7.7 kB/s | 9.8 kB     00:01    
Dependencies resolved.
=================================================================================================================================
 Package                            Architecture              Version                      Repository                       Size
=================================================================================================================================
Upgrading:
 elevate-release                    noarch                    1.0-2.el8                    @commandline                    9.8 k

Transaction Summary
=================================================================================================================================
Upgrade  1 Package

Total size: 9.8 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                         1/1 
  Upgrading        : elevate-release-1.0-2.el8.noarch                                                                        1/2 
  Cleanup          : elevate-release-1.0-2.el7.noarch                                                                        2/2 
  Verifying        : elevate-release-1.0-2.el8.noarch                                                                        1/2 
  Verifying        : elevate-release-1.0-2.el7.noarch                                                                        2/2 

Upgraded:
  elevate-release-1.0-2.el8.noarch                                                                                               

Complete!
[root@localhost ~]#
[root@localhost ~]# yum install -y leapp-upgrade leapp-data-almalinux
Last metadata expiration check: 1:38:16 ago on Sat 22 Apr 2023 01:13:05 PM CST.
Dependencies resolved.
=================================================================================================================================
 Package                                 Architecture       Version                                    Repository           Size
=================================================================================================================================
Installing:
 leapp-data-almalinux                    noarch             0.2-2.el8                                  elevate              57 k
 leapp-upgrade-el8toel9                  noarch             1:0.16.0-6.el8_6.elevate.10                elevate             639 k
Installing dependencies:
 leapp                                   noarch             0.14.0-1.el8_6                             elevate              31 k
 leapp-deps                              noarch             0.14.0-1.el8_6                             elevate              14 k
 leapp-upgrade-el8toel9-deps             noarch             1:0.16.0-6.el8_6.elevate.10                elevate              28 k
 python3-leapp                           noarch             0.14.0-1.el8_6                             elevate             174 k

Transaction Summary
=================================================================================================================================
Install  6 Packages

Total download size: 943 k
Installed size: 3.9 M
Downloading Packages:
(1/6): leapp-0.14.0-1.el8_6.noarch.rpm                                                            27 kB/s |  31 kB     00:01    
(2/6): leapp-deps-0.14.0-1.el8_6.noarch.rpm                                                       12 kB/s |  14 kB     00:01    
(3/6): leapp-data-almalinux-0.2-2.el8.noarch.rpm                                                  39 kB/s |  57 kB     00:01    
(4/6): leapp-upgrade-el8toel9-deps-0.16.0-6.el8_6.elevate.10.noarch.rpm                           50 kB/s |  28 kB     00:00    
(5/6): python3-leapp-0.14.0-1.el8_6.noarch.rpm                                                   203 kB/s | 174 kB     00:00    
(6/6): leapp-upgrade-el8toel9-0.16.0-6.el8_6.elevate.10.noarch.rpm                               456 kB/s | 639 kB     00:01    
---------------------------------------------------------------------------------------------------------------------------------
Total                                                                                            366 kB/s | 943 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                         1/1 
  Installing       : leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch                                          1/6 
  Installing       : leapp-deps-0.14.0-1.el8_6.noarch                                                                        2/6 
  Installing       : python3-leapp-0.14.0-1.el8_6.noarch                                                                     3/6 
  Installing       : leapp-0.14.0-1.el8_6.noarch                                                                             4/6 
  Installing       : leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch                                               5/6 
  Installing       : leapp-data-almalinux-0.2-2.el8.noarch                                                                   6/6 
  Running scriptlet: leapp-data-almalinux-0.2-2.el8.noarch                                                                   6/6 
  Verifying        : leapp-0.14.0-1.el8_6.noarch                                                                             1/6 
  Verifying        : leapp-data-almalinux-0.2-2.el8.noarch                                                                   2/6 
  Verifying        : leapp-deps-0.14.0-1.el8_6.noarch                                                                        3/6 
  Verifying        : leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch                                               4/6 
  Verifying        : leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch                                          5/6 
  Verifying        : python3-leapp-0.14.0-1.el8_6.noarch                                                                     6/6 

Installed:
  leapp-0.14.0-1.el8_6.noarch                                       leapp-data-almalinux-0.2-2.el8.noarch                       
  leapp-deps-0.14.0-1.el8_6.noarch                                  leapp-upgrade-el8toel9-1:0.16.0-6.el8_6.elevate.10.noarch   
  leapp-upgrade-el8toel9-deps-1:0.16.0-6.el8_6.elevate.10.noarch    python3-leapp-0.14.0-1.el8_6.noarch                         

Complete!
[root@localhost ~]#
[root@localhost ~]# cat /etc/yum.conf 
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
# exclude=python2-leapp,snactor,leapp-upgrade-el7toel8,leapp
[root@localhost ~]#

see also package leapp-upgrade-el7toel8-1:0.16.0-6.el7.elevate.8.noarch conflicts with leapp-upgrade-el8toel9 provided by leapp-upgrade-el8toel9-0.17.0-3.el8.noarch when upgrade almalinux 8 to 9 · Issue #824 · oamg/leapp (github.com)