Subscribing RHEL8 with Satellite bootstrap.py, returns the error: "ImportError: No module named dnf" or "-bash: ./bootstrap.py: /usr/bin/python: bad interpreter: No such file or directory"

Solution In Progress - Updated -

Issue

Subscribing RHEL8 with Satellite bootstrap.py, returns the errors:

    Traceback (most recent call last):
  File "/root/bootstrap.py", line 61, in <module>
    import dnf  # pylint:disable=import-error
ImportError: No module named dnf
-bash: ./bootstrap.py: /usr/bin/python: bad interpreter: No such file or directory

Environment

  • Red Hat Enterprise Linux 8
  • Satellite 6

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