LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2009, 10:04 AM   #1
zogthegreat
Member
 
Registered: Apr 2009
Location: Montreal, Canada
Distribution: Fedora, CentOS, Ubuntu
Posts: 63

Rep: Reputation: 16
need help: yum broken after removing new kernel


I seem to have broken something after removing a test kernel that I had installed. I removed the kernel with the following command:

rpm -e kernel-2.6.29.6-217.2.3.test.fc11.x86_64

The kernel was erased, but I received an error about "grubby", that I seem to have lost. When I run "yum xxx" this is what happens:

[root@gryphon ~]# yum -y update
Loaded plugins: auto-update-debuginfo, fastestmirror, presto, protectbase, refresh-packagekit, refresh-updatesd
Found 15 installed debuginfo package(s)
Enabling fedora-debuginfo: Fedora 11 - x86_64 - Debug
Loading mirror speeds from cached hostfile
fedora/metalink | 16 kB 00:00
updates/metalink | 12 kB 00:00
* fedora: fedora.mirror.iweb.ca
* fedora-debuginfo: fedora.mirror.iweb.ca
* livna: rpm.livna.org
* rpmfusion-free: mirror.liberty.edu
* rpmfusion-free-updates: mirror.liberty.edu
* rpmfusion-nonfree: mirror.liberty.edu
* rpmfusion-nonfree-updates: mirror.liberty.edu
* updates: fedora.mirror.iweb.ca
Reading repository metadata in from local files
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
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 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 348, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 491, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/auto-update-debuginfo.py", line 51, in postreposetup_hook
enable_debuginfo_repos(yb)
File "/usr/lib/yum-plugins/auto-update-debuginfo.py", line 38, in enable_debuginfo_repos
yb.doRepoSetup(thisrepo=r.id)
File "/usr/share/yum-cli/cli.py", line 130, in doRepoSetup
self._getSacks(thisrepo=thisrepo)
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 503, in _getSacks
self.plugins.run('exclude')
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/protectbase.py", line 51, in exclude_hook
repo1pkgs = _pkglisttodict(conduit.getPackages(repo1))
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 584, in getPackages
return self._base.pkgSack.returnPackages(arg)
File "/usr/lib/python2.6/site-packages/yum/packageSack.py", line 397, in returnPackages
return self.sacks[repoid].returnPackages(patterns=patterns,
KeyError: 'fedora'
[root@gryphon ~]#

I have tried to do the following:

package-cleanup --problems
yum clean all
yum clean metadata
yum clean packages
yum clean dbcache


Anyone have a suggestion?

Thanks

zog
 
Old 08-09-2009, 12:37 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Purely guessing here.

If you ran a yum update with that kernel installed you may have drawn in some kernel dependent stuff. With the debug repo enabled this becomes even more likely. Whenever possible on RH based systems you want to avoid using the rpm command as much as possible(sometimes it cannot be avoided).

One thing you can try is to reinstall that kernel (via rpm obviously). If that clears up the issue, then remove the kernel with yum. That should take care of any dependency issues.
 
  


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
How to prevent Yum/Yumex/Kyum from removing old kernel?? Hitboxx Fedora 2 06-28-2006 04:53 AM
fc3: removing old kernel/stuff after yum update pcandpc Fedora 3 05-13-2006 07:05 AM
broken yum - "No module named yum" shihab-alain Linux - Software 2 05-10-2006 05:09 AM
removing grouppackages with yum fakie_flip Linux - Software 0 02-23-2005 09:05 PM
removing old kernel after yum updates jmoody Fedora 5 08-03-2004 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 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
Open Source Consulting | Domain Registration