Yum not working at all due to /usr/bin/yum syntax error
I am trying to run "yum update" and no matter what I type after "yum" I get the following error.
[root@name user]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: It didn't copy over but there is a caret "^" underneath the comma in the above statement after "KeyboardInterrupt" I know a lot of security remediation has been done on this box and I am afraid that someone deleted or patched something that caused this to start happening. Any ideas? |
make sure you have an /etc/yum.conf file.
That file should specify where cache is (typically /var/yum/cache). Sometimes when yum pukes it is due to corruption in the yum cache. Running "yum clean metadata" might clean that up for you. If you save rpms in your cache you would want to save contents of the cache directory elsewhere before running the clean. |
All times are GMT -5. The time now is 06:31 PM. |