Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-09-2010, 04:08 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
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?

Last edited by aheusdens; 04-09-2010 at 04:09 PM.
Old 04-09-2010, 04:15 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 11:25 AM
Yum fails with perl syntax error pawprint_net Linux - Software 4 03-05-2010 05:13 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
/usr/bin/lesspipe: line 223: syntax error: unexpected end of file fakie_flip Linux - Software 1 09-06-2006 02:22 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration