Yum or other commands gives error as : /usr/bin/yum: /usr/bin/pythonX.X: bad interpreter: No such file or directory

Solution Verified - Updated -

Issue

-Commands like yum and sosreport 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In