Why "leapp preupgrade" fails with error "Failed to install DNF plugin. Error: [Errno 2] No such file or directory: '/var/lib/leapp/el9userspace/lib/python3.9/site-packages/dnf-plugins/rhel_upgrade.py'"?

Solution Verified - Updated -

Issue

  • During an in-place upgrade from RHEL 8 to RHEL 9, the leapp preupgradecommand encounters an error and fails:

    # cat /var/log/leapp/leapp-report.txt
    Risk Factor: high (error)
    Title: Failed to install DNF plugin. Error: [Errno 2] No such file or directory: '/var/lib/leapp/el9userspace/lib/python3.9/site-packages/dnf-plugins/rhel_upgrade.py'
    Summary:
    Key: 99a8950292b22077bbfbd761958ddb2593de5c90
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • 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