Yum or other commands gives error as : /usr/bin/yum: /usr/bin/pythonX.X: bad interpreter: No such file or directory
Issue
- Commands like
yum
andsosreport
are not working with error as/usr/bin/yum: /usr/bin/pythonX.X: bad interpreter: No such file or directory
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.