Sponsored Content
Full Discussion: rpmdb open failed
Operating Systems Linux Red Hat rpmdb open failed Post 302520253 by bakunin on Friday 6th of May 2011 08:49:39 AM
Old 05-06-2011
That's essentially the same error as

Code:
rpm -q <some_pkg>
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
package <some_pkg> is not installed

The problem is a corrupted rpm database, mostly coming into existence because of an aborted update process. It also happens sometimes when the package containing rpm itself is updated.

The solution is to delete and then rebuild the database:

Code:
# rm -f /var/lib/rpm/__db.[0-9][0-9]*
# rpm --quiet -qa


I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Failed to open output file Error

Hi guys, I Have written a script,In that it will call another file which contains the sql quaries. while wxecuting that I am getting the below exception 01/16|06:28:06:16800: Operating System Error|Failed to open output file Can anybody help me about this,,Its urgent (0 Replies)
Discussion started by: Anji
0 Replies

2. Solaris

libCstd.so.1: open failed

Morning all, I have a problem with a Sun workstation which is running Solaris 8. When I attempt to open an application, the executable fails with this message : "fatal: libcstd.so.1: open failed: No such file or directory" It was suggested to me that I need to add these patches to fix the... (4 Replies)
Discussion started by: AndyD
4 Replies

3. Solaris

Error:: libm.so.2:open failed

Hi, I am working with solaris 9 and I want to install perforce on that,so I downloaded the p4v.bin file and try to install it by the command ./p4v after that it is giving the error--- ld.so.1: ./p4v.bin: fatal: libm.so.2: open failed: No such file or directory Killed I am not... (3 Replies)
Discussion started by: smartgupta
3 Replies

4. Solaris

Solaris10..Open boot diagnostic failed

Hi all, when am rebooting the server (SF v890) we are facing "open boot diagnostic failed". Thanks in Adv. (5 Replies)
Discussion started by: arjunreddy3
5 Replies

5. UNIX for Dummies Questions & Answers

Rdesktop failed to open keymap common#015

Hi everybody... I have installed qrdesktop(is a tool similar to rdesktop used to access remote desktop) on Ubuntu 8.10. when i am accessing the remote desktop some of the keyboard keys are not working on remote desktop like up arrow ,down arrow, left, right, delete etc. the output of tail... (5 Replies)
Discussion started by: lokeshsingla
5 Replies

6. Solaris

libucb.s0.1: open failed...

Hi all. I try to start an application, but libucb.so1 is missing. # appl23 # appl23ld.so.1: appl23: fatal: libucb.so1: open failed: No such file or directory killed # # ldd appl23 libXm.so.3 => /usr/lib/libXm.so.3 libMrm.so.3 => /usr/lib/libMrm.so.3 ... (14 Replies)
Discussion started by: wolfgang
14 Replies

7. Solaris

Sendmai l: libssl.so.0.9.7: open failed

Hey for some reason I think I deleted a critical file for sendmail. I was looking the log file on /var/log/cron for cron, and the file isn't there and I found out the reason why is because I'm missing libssl.so.0.9.7. Im running Solaris 11. I checked smtp and got the following: #svcs -xv... (3 Replies)
Discussion started by: picolin
3 Replies

8. UNIX for Beginners Questions & Answers

Rdesktop - ERROR: Failed to open keymap en-us

I just updated my rdesktop to 1.8.3 from source ( on Slackware 11 ) and had troubles with arrow keys/page up/page down not working. I see this on the console: ERROR: Failed to open keymap en-us The fix is a permission change. I initially looked at /usr/share/rdesktop/keymaps and everything... (1 Reply)
Discussion started by: agentrnge
1 Replies

9. Shell Programming and Scripting

Linux open failed: No such file or directory error

Hi, The below commands works fine on serverB . /etc/profile; cd /export/home/user2/utils/plugin/ ./runme.shHowever, when i run the same commands from serverA it fails $ ssh -q user2@serverB ". /etc/profile; cd /export/home/user2/utils/plugin; ./runme.sh"Output Error: Please find the below... (8 Replies)
Discussion started by: mohtashims
8 Replies

10. Shell Programming and Scripting

Script to find Error: rpmdb open failed on list of servers

Hello all, I have a task to patch red hat servers and some servers have a corrupted rpm database and return the error: Error: rpmdb open failed I know how to fix this when it occurs. What I'm hoping to do is scan a list of servers by IP and report back which server have this error. ... (6 Replies)
Discussion started by: greavette
6 Replies
yum(8)																	    yum(8)

NAME
yum - Yellowdog Updater Modified shell SYNOPSIS
yum shell [filename] DESCRIPTION
yum includes an interactive shell for conducting multiple commands or sets of commands during a single execution of yum. These commands can be issued manually or passed to yum from a file. The commands are much the same as the normal yum command line options. See here yum(8) for that information. There are a few additional commands documented below. config [argument] [value] args: debuglevel, errorlevel, obsoletes, gpgcheck, assumeyes, exclude If no value is given it prints the current value. If value is given it sets that value. repo [argument] [option] list: lists repositories and their status enable: enable repositories. option = repository id disable: disable repositories. option = repository id transaction [argument] list: lists the contents of the transaction reset: reset (zero-out) the transaction solve: run the dependency solver on the transaction run: run the transaction Examples The following are examples of using the yum shell. list available packagename* groupinfo 'Some Group' install foo remove bar update baz run That will list available packages matching the glob 'packagename*'. It will return information on the group 'Some Group' It will then queue the following commands into the transaction: install foo, remove bar, update baz. Then the 'run' command will resolve dependencies for the transaction commands and run the transaction. SEE ALSO
yum (8) http://yum.baseurl.org/ AUTHORS
See the Authors file included with this program. BUGS
There of course aren't any bugs, but if you find any, they should be sent to the mailing list: yum@lists.baseurl.org or filed in bugzilla. Seth Vidal yum(8)
All times are GMT -4. The time now is 12:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy