Failed to remove leapp packages with error : package leapp-upgrade-XXX.noarch requires leapp-repository-dependencies, but none of the providers can be installed

Solution Verified - Updated

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 leapp packages 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:

Root Cause

  • During in-place upgrade, packages includingleapp and snactor are 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 includingleapp and snactor are 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
    
SBR
Components
Category

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.