HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

rpm installation fails

 
Tonatiuh
Super Advisor

rpm installation fails

Red Hat Enterprise linux 4.8 on Itanium2.

# rpm -Uvh cvuqdisk-1.0.1-1.rpm
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
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm

# rpm -ivh cvuqdisk-1.0.1-1.rpm
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

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

I installed with same kickstart file, 4 identical servers. Only one of them shows this problem. That server is also creating tons of /var/log/salinfo/raw files.

# ll
total 64
-rw------- 1 root root 5448 Aug 27 20:18 dgodb03.lcred.org-2009-08-27-18:18:44-cpu0-cmc0
-rw------- 1 root root 456 Aug 27 20:18 dgodb03.lcred.org-2009-08-27-18:18:44-cpu0-cpe0
-rw------- 1 root root 5448 Aug 27 20:18 dgodb03.lcred.org-2009-08-27-18:18:44-cpu1-cmc0
-rw------- 1 root root 456 Aug 27 20:19 dgodb03.lcred.org-2009-08-27-18:19:44-cpu0-cpe0
-rw------- 1 root root 5448 Aug 27 20:19 dgodb03.lcred.org-2009-08-27-18:19:44-cpu1-cmc0
-rw------- 1 root root 5448 Aug 27 20:20 dgodb03.lcred.org-2009-08-27-18:20:44-cpu1-cmc0
-rw------- 1 root root 456 Aug 27 20:20 dgodb03.lcred.org-2009-08-27-18:20:45-cpu0-cpe0
-rw------- 1 root root 5448 Aug 27 20:23 dgodb03.lcred.org-2009-08-27-18:23:46-cpu0-cmc0
-rw------- 1 root root 5448 Aug 27 20:23 dgodb03.lcred.org-2009-08-27-18:23:46-cpu1-cmc0
-rw------- 1 root root 456 Aug 27 20:23 dgodb03.lcred.org-2009-08-27-18:23:47-cpu0-cpe0

# cat dgodb03.lcred.org-2009-08-27-18:23:47-cpu0-cpe0
•rÈG#' òú)ä·<Ô¼§€Ç<ˆ  3Ð9 D2Ðþ +(ª¬s“Ü G—Bª…OQ
ûÿ€9 ‚ÿ
À9S´

Any idea?
8 REPLIES
Steven Schweda
Honored Contributor

Re: rpm installation fails

I know nothing, but a Google search for an
error message like:
rpmdb: unable to join the environment
finds several suggestions.
Ivan Ferreira
Honored Contributor

Re: rpm installation fails

Try rebuilding your rpm database with the rpmbuild --rebuild command. Search in google how to delete and rebuild your database.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
loco_vikide
Frequent Advisor

Re: rpm installation fails

To rebuild corrupted rpm database:
# cd /var/lib/rpm
# rm --db.00*
# rpm -vv --rebuilddb

Cheers
Tonatiuh
Super Advisor

Re: rpm installation fails

# rpm --db.00*
--db.00*: unknown option
loco_vikide
Frequent Advisor

Re: rpm installation fails

rm not rpm
Typo on two dashes. They should be two underscores:
# rm __db.00*
Steven E. Protter
Exalted Contributor

Re: rpm installation fails

Shalom,

This is the procedure:

rm -f /var/lib/rpm/__db*
rpm --rebuilddb

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: rpm installation fails


i have done this sucessful

Make a backup of /var/lib/rpm in case you break something:
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm

Remove the Berkeley databases that rpm uses:
rm /var/lib/rpm/__db.00*

Make rpm rebuild the databases from scratch (may take a short while):
rpm --rebuilddb

Now, check rpm to make sure everything is okay:
rpm -qa | sort
Steven E. Protter
Exalted Contributor

Re: rpm installation fails

Shalom,

Also, make sure the rpm is IA64.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com