LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat RPM error (https://www.linuxquestions.org/questions/linux-software-2/redhat-rpm-error-159134/)

Micropocalypse 03-17-2004 05:41 PM

Redhat RPM error
 
basicaly i get this error whenever i try to do anything with a rpm (even --initdb or --rebuilddb) ive removed all the config files, database, and reinstalled rpm, but i still get it. running redhat 9 , 2.6.3 kernel, and besides that just plain redhat.

[root@tiewrap linux]# rpm -ivvv frozen-bubble-1.0.0-5.fr.i386.rpm
D: ============== frozen-bubble-1.0.0-5.fr.i386.rpm
D: Expected size: 7557307 = lead(96)+sigs(344)+pad(0)+data(7556867)
D: Actual size: 7557307
D: opening db environment /var/lib/rpm/Packages joinenv
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
warning: frozen-bubble-1.0.0-5.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages database in /var/lib/rpm
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D: 0 0 0 0 0 +frozen-bubble-1.0.0-5.fr



------------------------------
Eagles may soar but a weasel never got sucked into a jet engine.

AutOPSY 03-17-2004 09:30 PM

I am running RedHat9 and am not having any rpm problems.

try using 'rpm -ivh filename.rpm' to install.

what is the -ivvv switch anyways?

after installing all rpms for the day run 'updatedb' .

taillefer 03-17-2004 11:18 PM

enter the following in console -

#export LD_ASSUME_KERNEL=2.2.5

and try...

You can enter the same to your login file to avoid typing it everytime... The prob is coz u r using the newer kernel (I think;))

http://thomer.com/linux/migrate-to-2.6.html has more info...

vishal 03-29-2004 07:38 AM

Another RPM error
 
Hi,
I am a Linux newbie and just installed Redhat Linux 9. Everything went on smoothly but just before the first boot I got the following error:

rpmdb: fatal region error detected; run recovery

After the boot, I found that Linux loads in X Windows Manager with xterm ....etc (dunno what to call it). No Gnome in spite of having installed it. Switchdesk commands kept saying that gnome is not installed.

While upgrading the Gnome packages, I realized that the 'gnome-icon-theme' package did not install properly. My attempts to install that package gave the same error.

Thinking that there might be a problem with my installation media, I downloaded the
package from the internet and used RPM to install it. Again got the following error:

rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from db->get: DB_RUNRECOVERY: Fatal error, run database recovery

Using rpm -ivh didn't help...

Can anybody help?

Thanks in advance.
Vishal

esanchez 04-20-2004 11:30 AM

the #LD_ASSUME_KERNEL=2.2.5 worked for me..
regards,

-eduardo s.m.

taillefer 04-22-2004 08:20 AM

at last some appreciation:D

crondaily 05-13-2004 11:07 PM

RPM died on me too
 
:(
Running 'rpm -qa' as root gives:

Code:

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
no packages

I have recently upgraded my Kernel to 2.6.6, as I am trying to get kdetv to work. I am not certain if the screwup was due to my compile screwup of kdetv, but I didn't notice this until kdetv's configure command claimed that I didn't have kdelibs installed, even though I was running kde at the time. Anyway, that's another story.

I ran:

Code:

export LD_ASSUME_KERNEL=2.6.6
but that didn't help ... I've tried 'rpm --rebuilddb' but that won't work either, and produces similar error messges.

I've tried:
Code:

cd /var/lib
mv rpm rpm.old
mkdir rpm
chown rpm:rpm rpm

to start rpm off with a fresh directory, but that didn't help either. Each time I run rpm with any parameters, it produces a zero byte file in /var/lib/rpm called '__db.001', waits about 10 seconds, then dies with the above error message.

Oh, and /var is 63% full ... so it's got lots of space.

Any other ideas?

crondaily 05-13-2004 11:14 PM

Update
 
Update ... Running 'rpm -qa' as a non-root user works

piggysmile 04-06-2005 09:04 AM

export LD_ASSUME_KERNEL=2.2.5 works but only under the shell console. Graphical RPM still crashes including redhat-config-packages and graphical RPM installers when ran not from shell. Why is this?

Tudor Vlasceanu 04-06-2005 11:40 AM

Thank you kindly. This information is very usefull for me. Great site! Thanks again!

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

http://www.geocities.com/neolink_ro

piggysmile 04-06-2005 06:50 PM

Please help.


All times are GMT -5. The time now is 07:30 PM.