yum/dnf broken
No yum/dnf commands works on RHEL 8 EC2 instance. Whatever yum/dnf command I run, I get the below error. Any help would be appreciated
yum Traceback (most recent call last): File "/usr/bin/yum", line 57, in from dnf.cli import main File "/usr/lib/python3.6/site-packages/dnf/init.py", line 22, in import warnings ImportError: bad magic number in 'warnings': b'a\r\r\n' |
did you make any changes on that system? Probably you need to reinstall python and some packages.
|
It gets automated patching i.e. yum update -y on a monthly basis. I strongly believe I am not able to use yum/dnf after the automated patching. Is there a way to fix the python
|
Quote:
Quote:
Another alternative would be that someone else updated something manually, which broke python. Have they? |
It is hosted through AWS and we do not have enterprise support for it. I have quite a few servers with the same exact issue so I highly doubt someone did something to break it.
|
Quote:
|
Not all the instances, 7 out of 30 plus have this issue. The others are running fine. My primary goal right now is to fix the system rather than finding out what broke it. Will do the RCA after the fix.
|
Quote:
Have you done any troubleshooting thus far?? Run "python --version" on the machines to see what comes up? |
All times are GMT -5. The time now is 02:39 PM. |