Leapp upgrade fails with "DNF execution failed with non zero exit code."

Solution Verified - Updated -

Issue

  • Upon executing leapp upgrade command, the command fails and the report shows issues related to conflicts, e.g. /var/log/leapp/leapp-report.txt shows the following

    Risk Factor: high (error)
    Title: DNF execution failed with non zero exit code.
    Summary: {"STDERR": "Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp-upgrade-el7toel8 leapp python2-leapp\nRPM: warning: Generating 6 missing index(es), please wait...\nError: Transaction test error:\n  file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.opt-1.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch\n  file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch\n  file /usr/lib/python3.6/site-packages/six.py [...]
    

Environment

  • Red Hat Enterprise Linux 7
    • leapp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content