LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-04-2005, 04:12 PM   #1
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
rpmdb: Program version 4.2 doesn't match environment version


Lots of folks are seeing this so I thought I would through this out here. This can also be found in the Red Hat Knowledgebase:

Why does the Red Hat Update Agent (up2date) return the error 'rpmdb: Program version 4.2 doesn't match environment version' after updating my Red Hat Enterprise Linux 3 machine to Update 4?

Release Found: Red Hat Enterprise Linux 3 Update 4

Symptom:
This would occur in systems which are set to automatically update using up2date. You get the following error after updating Red Hat Enterprise Linux 3 machine to Update 4:

Code:
rpmdb: Program version 4.2 doesn't match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Solution:

This is a bug, which has been observed after the release of Update 4 for Red Hat Enterprise Linux 3. Red Hat is aware of the problem and we are working to resolve it. To get information related to this bug or to submit additional details to it, see bug 143532 in Bugzilla.

Workaround: The less invasive way to resolve this problem is to reboot your system. If you can not reboot your system or if a reboot does not resolve the issue, the following should work.

To fix this issue and to allow the updates to continue, remove all files starting with __db in /var/lib/rpm directory.


Code:
# rm -rf /var/lib/rpm/__db*
Note: Before executing this command ensure that rpm, rpmq, up2date or rhnsd processes are not running.

The problem is caused by an incompatibility to the RPM database. You can rebuild your RPM database with the following command (after you remove the /var/lib/rpm/__db* files):

Code:
# rpm --rebuilddb

This article is protected by the Open Publication License, V1.0 or later http://www.opencontent.org/openpub/ Copyright © 2003-2005 by Red Hat, Inc.
 
Old 01-10-2005, 10:09 AM   #2
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Original Poster
Rep: Reputation: 30
bttt
 
Old 05-29-2007, 09:57 PM   #3
math_1048
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Rep: Reputation: 15
Thank you very much its was useful for me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
wlan0 has been compiled with version 18, this program supports up to version 17. dave`2005 Linux - Wireless Networking 1 11-23-2005 04:16 PM
How can I update my Gnome desktop environment to 2.8 version homesp Linux - Software 3 09-17-2004 06:16 AM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
ELF file version does not not match current one kakultech Linux - Software 1 10-06-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration