Failed to remove leapp packages with error : package leapp-upgrade-XXX.noarch requires leapp-repository-dependencies, but none of the providers can be installed
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Leapp Upgrade Tool
Issue
-
Following errors occur when trying to remove
leapppackages after in-place upgrade:$ yum remove leapp-deps-el8 leapp-repository-deps-el8 Error: Problem 1: package leapp-upgrade-el7toel8-0.17.0-1.el7_9.noarch requires leapp-repository-dependencies = 7, but none of the providers can be installed - conflicting requests - problem with installed package leapp-upgrade-el7toel8-0.17.0-1.el7_9.noarch Problem 2: package python2-leapp-0.15.0-2.el7_9.noarch requires leapp-framework-dependencies = 5, but none of the providers can be installed - conflicting requests - problem with installed package python2-leapp-0.15.0-2.el7_9.noarch
Resolution
Remove all packages from the exclude list in /etc/dnf/dnf.conf by one of the methods below:
-
Manually remove packages from the exclude list by editing
/etc/dnf/dnf.conf$ vim /etc/dnf/dnf.conf [main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_unavailable=False exclude= -----===> Remove all packages -
Or remove all packages from the exclude list by one command as below:
$ dnf config-manager --save --setopt exclude='' -
Please refer to Performing post-upgrade tasks from (RHEL 7 to RHEL 8) and Performing post-upgrade tasks from (RHEL 8 to RHEL 9) for more details
Root Cause
- During in-place upgrade, packages including
leappandsnactorare automatically added to exclude list to prevent critical files from being removed or updated - After in-place upgrade, those packages must be removed from exclude list before they can be removed from the system
Diagnostic Steps
-
Packages including
leappandsnactorare added to exclude list in/etc/dnf/dnf.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
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.