I have a CentOS 5.4 box running usermin/virtualmin and have been keeping it up to date for the last year. There are no custom repos. Recently all the updates have started failing because yum is broken somehow. Even if I just try to get a version or something here is the response I get from the command line:
# yum -v
Traceback (most recent call last):
File "/usr/bin/yum", line 4, in ?
import yum
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 5
require './apache-lib.pl';
^
SyntaxError: invalid syntax
#
Anyone have any ideas how to fix this?
I have seen a lot online about problems with yum suggesting “yum clean all” as a fix - but I can’t get yum to even start so, of course, that is not an option. I have done nothing manually to this box - the last update must have caused this issue. I also dunno much about perl but I see no problem with the line:
require ‘./apache-lib.pl’;
Which is on it’s own in the file mentioned.