LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help: yum broken after removing new kernel (https://www.linuxquestions.org/questions/linux-software-2/need-help-yum-broken-after-removing-new-kernel-746220/)

zogthegreat 08-09-2009 11:04 AM

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

lazlow 08-09-2009 01:37 PM

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.


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