Unable to upgrade Foreman server on Rocky Linux 8.10 to 9.5 using leapp

Problem: I am trying to upgrade our Foreman box from Rocky Linux 8.10 to Rocky Linux 9.5 using this documentation. However, am getting an error during the TargetTransactionCheck phase.

Transaction check:

             Problem 1: package python3-leapp-0.19.0-1.el8_10.noarch from @System requires leapp-framework-dependencies = 6, but none of the providers can be installed
              - leapp-deps-0.19.0-1.el8_10.noarch from @System  does not belong to a distupgrade repository
              - problem with installed package python3-leapp-0.19.0-1.el8_10.noarch
             Problem 2: package python3-leapp-0.19.0-1.el8_10.noarch from @System requires leapp-framework-dependencies = 6, but none of the providers can be installed
              - package leapp-deps-el9-5.0.9-100.202401121819Z.0e51aebb.master.el9.noarch from @commandline obsoletes leapp-deps provided by leapp-deps-0.19.0-1.el8_10.noarch from @System
              - package leapp-0.19.0-1.el8_10.noarch from @System requires python3-leapp = 0.19.0-1.el8_10, but none of the providers can be installed
              - conflicting requests
              - problem with installed package leapp-0.19.0-1.el8_10.noarch

Expected outcome: I expected this to finish successfully so that I can upgrade to Rocky Linux 9.5

Foreman and Proxy versions: 3.12.1

Foreman and Proxy plugin versions:

Name Description Author Version
foreman-tasks The goal of this plugin is to unify the way of showing task statuses across the Foreman instance. It defines Task model for keeping the information about the tasks and Lock for assigning the tasks to resources. The locking allows dealing with preventing multiple colliding tasks to be run on the same resource. It also optionally provides Dynflow infrastructure for using it for managing the tasks. Ivan Nečas 9.2.3
foreman_ansible Ansible integration with Foreman Daniel Lobato Garcia 14.2.1
foreman_leapp A Foreman plugin to support inplace RHEL upgrades with Leapp utility. Foreman Leapp team 1.2.1
foreman_openscap Foreman plug-in for managing security compliance reports slukasik@redhat.com 9.0.4
foreman_remote_execution A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality. Foreman Remote Execution team 13.2.5
foreman_webhooks Plugin for Foreman that allows to configure Webhooks. Timo Goebel 3.2.3
katello Katello adds Content and Subscription Management to Foreman. For this it relies on Candlepin and Pulp. N/A 4.14.3

Distribution and version: Rocky Linux 8.10

Other relevant data:

Leapp packages that I’m currently using:

leapp-0.19.0-1.el8_10.noarch
rubygem-foreman_leapp-1.2.1-2.fm3_11.el8.noarch
leapp-upgrade-el8toel9-0.21.0-2.1.el8.noarch
leapp-upgrade-el8toel9-deps-0.21.0-2.1.el8.noarch
leapp-data-rocky-0.4-1.el8.noarch
python3-leapp-0.19.0-1.el8_10.noarch
leapp-deps-0.19.0-1.el8_10.noarch

Can provide leapp-preupgrade.log and/or leapp-report.txt if needed.

Thanks in advance.

You don’t seem to docs. You have the package python3-leapp-0.19.0-1.el8_10.noarch installed from a local rpm and not from the rocky repositories.

I would suggest you remove all installed leapp packages again and start over following the docs.

If you still have problems, please post the exact commands you have used and all the output of those commands.

after giving this another look, it turns out that package was being installed from the Rocky Linux 8 appstream repo. I modified the copr:copr.fedorainfracloud.org:group_theforeman:leapp repo file with priority=50 and with that I was able to get the correct packages installed. Another thing I ran into after running leapp upgrade --no-rhsm was that it errored out complaining about the rocky-logos package so had to remove that with dnf remove rocky-logos and reran the upgrade. Worked perfectly afterwards.