Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2011, 12:18 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 9

Rep: Reputation: Disabled
RHEL check Update problem

Well the problem i am facing is with "yum check-update". I would tell you what stupidity i had done. Well i had kept the server for updating and then it was taking a long time after some updates so what i did was abort the update and after that i am unable to access yum through GUI. So then the other option remained was command line.

Now the problem is when i use the command line i get the same error when i try yum check-update command

Loaded plugins: rhnplugin, security
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/", line 157, in main
File "/usr/share/yum-cli/", line 187, in getOptionsConfig
File "/usr/lib/python2.4/site-packages/yum/", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/", line 254, in _getConfig'init')
File "/usr/lib/python2.4/site-packages/yum/", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/", line 144, in init_hook
repo = RhnRepo(channel)
File "/usr/lib/yum-plugins/", line 219, in __init__
self.metadata_cookie = 'cookie'
AttributeError: can't set attribute

Now please tell me if i can troubleshoot this and how to get it running?


Old 07-13-2011, 07:47 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
As no-one has responded, I'll give it a shot.
rpm --rebuilddb
yum clean all
that should do it, I think. You may need to try it more than once, possibly in the opposite order.

Last edited by chrism01; 07-13-2011 at 07:49 PM.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check installed license in RHEL 5.5 lancedehm Red Hat 1 07-08-2010 12:59 PM
How to check out rhel server last update abhijeetdutta Linux - Software 2 10-26-2009 11:17 PM
Upgrading RHEL 4 update 4 to RHEL 4 update 6?? your_shadow03 Linux - Newbie 4 09-05-2008 02:16 AM
updating RHEL AS4 update 1 to update 5 via CDs? icemaker Linux - Software 1 06-09-2007 07:29 PM
RHEL 4 update 2 - kernel build problem bbell Red Hat 3 04-20-2006 11:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05: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