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"
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.