[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: RPM db error during Kernel install



On Wed, 2 Jul 2003, Mike Kercher wrote:

> I found this on Google:
> 
> http://www.geocrawler.com/archives/3/87/2002/5/50/8763536/
> 
> You might try running rpm --rebuilddb and see if that helps.


Thanks Mike,

After running --rebuilddb, I still had two 'versions' of the same kernel 
installed.

I couldn't uninstall one, because everything depends on the kernel, and 
there was only one installed. 

I couldn't find the errata kernel that was running. Version 2.4.9.21 no
longer seems to exist on the net. So I installed the original version
that shipped with 7.1, and the not-so-latest errata(2.4.20-13.7). Then
it let me remove both copies of 2.4.20-18.7, and install it cleanly.


Here's what it looked like:


[root aristotle rpms]# rpm -ivh /home/meetsma/kernel-2.4.2*
Preparing...                ########################################### [100%]
package kernel-2.4.20-18.7 (which is newer than kernel-2.4.20-13.7) is already installed
package kernel-2.4.20-18.7 (which is newer than kernel-2.4.20-13.7) is already installed
package kernel-2.4.20-18.7 (which is newer than kernel-2.4.2-2) is already installed
package kernel-2.4.20-18.7 (which is newer than kernel-2.4.2-2) is already installed
[root aristotle rpms]# rpm -ivh --oldpackage /home/meetsma/kernel-2.4.2*
Preparing...                ########################################### [100%]
   1:kernel                 ########################################### [ 50%]
   2:kernel                 ########################################### [100%]
[root aristotle rpms]# rpm -qa |grep kernel
kernel-2.4.20-18.7
kernel-2.4.20-18.7
kernel-2.4.20-13.7
kernel-headers-2.4.9-21
kernel-2.4.2-2
[root aristotle rpms]# rpm -e --allmatches kernel-2.4.20-18.7 --test
[root aristotle rpms]# rpm -e --allmatches kernel-2.4.20-18.7       
[root aristotle rpms]# rpm -qa |grep kernel
kernel-2.4.20-13.7
kernel-headers-2.4.9-21
kernel-2.4.2-2
[root aristotle rpms]# rpm -ivh kernel-2.4.20-18.7.i686.rpm 
Preparing...                ########################################### [100%]
   1:kernel                 ########################################### [100%]
[root aristotle rpms]# rpm -qa |grep kernel
kernel-2.4.20-18.7
kernel-2.4.20-13.7
kernel-headers-2.4.9-21
kernel-2.4.2-2
[root aristotle rpms]# 



Thanks, now I just have to edit lilo, and cross my fingers :) I think 
I'll be more liberal with the --test option in the future.


-- 
 Arend 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]