LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-05-2005, 08:13 AM   #1
FishR
LQ Newbie
 
Registered: Dec 2004
Location: Acworth, GA
Distribution: Fedora Core 3, RHEL3 ES/AS
Posts: 11

Rep: Reputation: 0
RHEL3 ES and up2date issue


Hello all,

I am experiencing the following issues when attempting to use up2date on a RHEL3 ES server:


[root@<server> tmp]# up2date
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
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1174, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 656, in main
ret = sanityChecks(fromDaemon, hasGui)
File "/usr/sbin/up2date", line 288, in sanityChecks
if cfg["useGPG"] and gpgUtils.checkGPGInstallation() == 2:
File "gpgUtils.py", line 31, in checkGPGInstallation
File "gpgUtils.py", line 75, in findKey
File "rpmUtils.py", line 102, in installedHeadersNameVersion
TypeError: rpmdb open failed


[root@<server> tmp]# rpm -q up2date
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
package up2date is not installed



I tried to install the same version of up2date on the other servers in this farm I was able to update successfully but received the following:

[root@<server> tmp]# rpm -Uvh up2date-4.2.57-2.src.rpm
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
warning: up2date-4.2.57-2.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
1:up2date ########################################### [100%]


After this I continue to receive the same errors as before.

Anyone here have any insight into how I can correct this?

Thanks in advance...
 
Old 01-05-2005, 08:32 AM   #2
FishR
LQ Newbie
 
Registered: Dec 2004
Location: Acworth, GA
Distribution: Fedora Core 3, RHEL3 ES/AS
Posts: 11

Original Poster
Rep: Reputation: 0
I may have just found the answer by reading a post just down from this one in the list... I am still open to suggestions though if anyone has one.
 
Old 01-06-2005, 12:17 PM   #3
crypto76
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
how to rebuild the rpm db

The proper way of fixing that issue is to essentially rebuild your RPM database. I've had this same problem on 16 RHES3 servers using up2date after installing update4. Here's how to fix it.

cd /var/lib/rpm
rm -rf __db.00*
rpm --rebuilddb (this will recreate the __db.001, __db.002, and __db.003 database files.)

finally run `up2date -u` to update everything.
 
  


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
up2date issue ghettopunkkid Linux - Software 8 09-27-2005 05:58 AM
FC4 up2date issue halon1211 Linux - Software 1 07-08-2005 12:26 PM
RHEL3 update-rpms good for rh9? or howto keep rh9 up2date? birras Red Hat 4 11-14-2004 01:11 PM
Fedora 1 Up2date Issue (I know) Soulful93 Fedora 1 07-21-2004 07:36 PM
RH8 Up2Date Issue General_Tso Linux - Newbie 3 02-06-2003 10:22 AM


All times are GMT -5. The time now is 03:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration