J.J. Garcia
2008-Apr-24 19:21 UTC
[CentOS] package-cleanup fails when cleaning kernels in CentOS 5
Hija! I get this error while doing the cleanup, hints? Cheers, JJ ----------------------------------------------------------- [root at neonbox ~]# package-cleanup --oldkernels --count 2 Setting up yum Loading "priorities" plugin Loading "kernel-module" plugin Loading "protectbase" plugin Loading "kmdl" plugin Loading "skip-broken" plugin Loading "installonlyn" plugin 0 packages excluded due to repository priority protections 0 packages excluded due to repository protections I will remove the following 8 kernel related packages: kernel-2.6.18-53.1.6.el5 kernel-2.6.18-53.1.4.el5 kernel-2.6.18-8.1.15.el5 kernel-2.6.18-8.el5 kernel-devel-2.6.18-8.1.15.el5 kernel-devel-2.6.18-53.1.6.el5 kernel-devel-2.6.18-8.el5 kernel-devel-2.6.18-53.1.4.el5 Is this ok [y/N]: y /usr/bin/package-cleanup:312: DeprecationWarning: returnHeaderByTuple() will go away in a future version of Yum. hdr = my.rpmdb.returnHeaderByTuple(kernel)[0] Traceback (most recent call last): File "/usr/bin/package-cleanup", line 402, in ? main() File "/usr/bin/package-cleanup", line 371, in main removeKernels(my, opts.kernelcount, opts.confirmed, opts.keepdevel) File "/usr/bin/package-cleanup", line 317, in removeKernels my.populateTs() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 171, in populateTs self.ts.addErase(txmbr.po.idx) AttributeError: 'YumInstalledPackage' object has no attribute 'idx' ----------------------------------------------------------------------- FYI [root at neonbox ~]# rpm -q yum yum-3.0.5-1.el5.centos.5 [root at neonbox ~]# which package-cleanup /usr/bin/package-cleanup [root at neonbox ~]# rpm -qf /usr/bin/package-cleanup yum-utils-1.0.4-3.el5.centos.2 [root at neonbox ~]# rpm -q centos-release centos-release-5-1.0.el5.centos.1 TIA Jose.
Possibly Parallel Threads
- Dependency problems with Yum update
- Issue with package-cleanup --oldkernels with PAE kernel
- /dev/md1 => 93% Used. Warning. Disk Filling up. - what would be safe to delete in /boot ?
- How do I remove a kernel
- printing woos (CUPS + automatic printer download...)