cancel
Showing results for 
Search instead for 
Did you mean: 
PD102
Cadet
Cadet
  • 212 Views

yum command not working after removing python3.6 files from server

Hi Team,

 

I am facing one problem while running yum command. While runnning yum command I am getting below error:

-bash: /usr/bin/yum: /usr/libexec/platform-python: bad interpreter: No such file or directory. 

 

While running subscription-manager, it is giving below error:

ModuleNotFoundError: No module named 'pkg_resources'

 

I changes which I made is to remove the python3.6 file. python3.11 is currently install on server and i am able to use python3 without any issue.

 

Is there any configuration by which I can point yum/subscription-manager to python3.11 and resolve this issue?

 

Thank You

Labels (1)
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 175 Views

@PD102 It seems you have removed the system python interpreter which essentially made your YUM command go berserk!!

Do you have a backup - you can roll back.

Also, refer here for the support catalogue :

Chetan_Tiwary__0-1734725393442.png

 

You can migrate to RHEL 9 and see if it helps you, otherwise if you have the RH support you can ask them for any patch if that is what made you delete it in the first place.

Refer here for alternatives : https://access.redhat.com/solutions/5380941

 

0 Kudos
Join the discussion
You must log in to join this conversation.