LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-09-2010, 04:08 PM   #1
aheusdens
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
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

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


Reply


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


All times are GMT -5. The time now is 12:00 PM.

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