LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Yum not working at all due to /usr/bin/yum syntax error (https://www.linuxquestions.org/questions/linux-general-1/yum-not-working-at-all-due-to-usr-bin-yum-syntax-error-801117/)

aheusdens 04-09-2010 04:08 PM

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?

MensaWater 04-09-2010 04:15 PM

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.