KeyError: 'leapp' in leapp preupgrade

Hi All,

I am trying to upgrade from Rocky8 to Rocky9 using leapp
sudo leapp preupgrade
Traceback (most recent call last):
File “/usr/local/bin/leapp”, line 11, in
load_entry_point(‘leapp==0.14.0’, ‘console_scripts’, ‘leapp’)()
File “/usr/local/lib/python3.6/site-packages/leapp-0.14.0-py3.6.egg/leapp/cli/init.py”, line 37, in main
cli.command.execute(‘leapp version {}’.format(VERSION))
File “/usr/local/lib/python3.6/site-packages/leapp-0.14.0-py3.6.egg/leapp/utils/clicmd.py”, line 105, in execute
self._sub_commands[cmdname].parser.error(leftover)
KeyError: ‘leapp’

here is a kb article about this but I do not have access

can anyone help with this? thank you!

Rocky does not support in-place conversion to different distro. (8 and 9 are two distros.)

You have to ask from where-ever youdid get the leapp from.

Here is the output from the RHEL KB article:

Resolution

  • Execute the following command to check whether you have the leapp-upgrade-el7toel8 & leapp-upgrade-el7toel8-deps packages installed on the RHEL 7.9 system.
  • Execute the following command to check whether you have the leapp-upgrade-el8toel9 & leapp-upgrade-el8toel9-deps packages installed on the RHEL 8.8 system.
  • If not, execute the following command to install the leapp-upgrade-elXtoelX & leapp-upgrade-elXtoelX-deps packages. Depending on your RHEL version, replace ‘X’ with your package version.

Raw

# yum install leapp-upgrade-elXtoelX leapp-upgrade-elXtoelX-deps
  • For offline systems, Download packages and their dependencies from the Red Hat customer portal : Red Hat Customer Portal

Root Cause

  • The packages required for leapp installation are provided by extra repos ( rhel-7-server-extras-rpms ) on the RHEL 7.9 system.
  • The packages required for leapp installation are provided by appstream repos ( rhel-8-for-x86_64-appstream-rpms) on the RHEL 8.8 system.
  • The error happens when packages are manually installed on a system and some packages are missing.

thank you so much! the error is gone after:
yum install leapp-upgrade-el8toel9 leapp-upgrade-el8toel9-deps --allowerasing --skip-broken --nobest

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.