db and rpm db

Adam Gołębiowski adamg at biomerieux.pl
Thu Aug 23 11:55:05 CEST 2007


This happened to me twice today:


--------------------
Installing set #9
Processing dependencies...
db4.6-4.6.18-1.i686 obsoleted by db4.6-4.6.19-1.i686
There are 1 package to install, 1 to remove:
I db4.6-4.6.19-1.i686
R db4.6-4.6.18-1.i686
Need to get 417.5KB of archives (417.5KB to download).
After unpacking 1.1MB will be used.
Retrieving th-test::db4.6-4.6.19-1.i686.rpm...
.............................. 100.0% [417.5K (243.2K/s)]
Executing rpm --upgrade -vh --root / --noorder...
Preparing...                ########################################### [100%]
   1:db4.6                  ########################################### [100%]
Installing set #10
Processing dependencies...
SysVinit-2.86-9.i686 obsoleted by SysVinit-2.86-10.i686
There are 1 package to install, 1 to remove:
I SysVinit-2.86-10.i686
R SysVinit-2.86-9.i686
Need to get 240.2KB of archives (240.2KB to download).
After unpacking 302.3KB will be used.
Retrieving th-test::SysVinit-2.86-10.i686.rpm...
.............................. 100.0% [240.2K (240.2K/s)]
Executing rpm --upgrade -vh --root / --noorder...
pmdb: munmap: Invalid argument
rpmdb: munmap: Invalid argument
rpmdb: munmap: Invalid argument
rpmdb: munmap: Invalid argument
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm

-----------------------

rpm --rebuilddb seems to fix this issue (I didn't try removing __db*). 
Perhaps some trigger in db-4.6.19? Is it possible to do `rpm --rebuilddb' in %post?

-- 
 http://www.mysza.eu.org/ | Everybody needs someone sure, someone true,
   PLD Linux developer    | Everybody needs some solid rock, I know I do.


More information about the pld-devel-en mailing list