LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
RHEL check Update problem


Hi,
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/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
self.plugins.run('init')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/rhnplugin.py", line 144, in init_hook
repo = RhnRepo(channel)
File "/usr/lib/yum-plugins/rhnplugin.py", 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?

Regards,

Debu
 
Old 07-13-2011, 07:47 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
As no-one has responded, I'll give it a shot.
Try
Code:
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.
http://linux.die.net/man/8/rpm
http://linux.die.net/man/8/yum
http://kbase.redhat.com/faq/docs/DOC-2531

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


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 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


All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration