[Ilugc] rpm package not working with kernel upgrade

  • From: siva.ilugc@xxxxxxxxx (Sivasankar Chander)
  • Date: Thu Jul 21 20:09:52 2005

On 21 Jul 2005 16:31:04 +0530, Raja Mallik <raja.mallik@xxxxxxxxxxx> wrote:



I have upgrade my kernel-2.4.20-8 (redhat 9) to kernel-2.6.12.

Now, my "rpm command is not working "

for eg: I get these errors as Itry any thing

rpmdb: unable to join the environment
...
error: cannot open Packages database in /var/lib/rpm

   This is a known issue - the workaround is:

export LD_ASSUME_KERNEL=2.2.5

<or>

export LD_ASSUME_KERNEL=2.4.1

Then rebuild the rpmdb:

rpm --rebuilddb

The longer term fix is to upgrade to rpm-4.3, but you
may have to jump through a lot of dependency hoops, including
glibc-2.3.3, to do that.

-Siva

Other related posts: