Operating System - Linux
1753772 Members
5259 Online
108799 Solutions
New Discussion юеВ

Re: 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 8
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