[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhn-users] rpm not functional after yesterdays up2date to RHEL3-U4



Norman Elton wrote:
Here's what I had to do (by hand) to all of our servers...

rm /var/lib/rpm/__*
rpm --rebuilddb

Sounds familiar. I've done that on RH9 and on RHEL3. Deep investigation showed there is an update of both `up2date` and `rpm` that is outside the up2date cyclus. Check the redhat websites to see if that holds true for your version and variant. Then carefully update both packages.


Roumors are this is due to some type of database, used with rpm that is in a bad version.

CBee



Frustrating, but necessary...


Norman

------------------------------------------------------
Norman Elton
Information Technology - Network Engineering
College of William & Mary
757-221-7790


On Dec 23, 2004, at 3:03 AM, Dr. Guenter Schmidt wrote:


Since yesterdays up2date the 'rpm' command does not work anymore.
I did:

admin viola(54)# up2date
New Up2date available
Restarting up2date
admin viola(55)# 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


There had been an error message in the graphical display, bu I cant remember it.
I tried a


admin viola(64)# rpm --rebuilddb
rpmdb: Program version 4.2 doesn't match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index

But that didnt work either.
Any idea what to do now?


Thanks!


--
Dr. Günter Schmidt          E-Mail: guenter schmidt bruker de
NMR Software Department     Tel: +49 721 5161 443
Bruker BioSpin GmbH         Fax: +49 721 5161 480


_______________________________________________ rhn-users mailing list rhn-users redhat com https://www.redhat.com/mailman/listinfo/rhn-users



_______________________________________________
rhn-users mailing list
rhn-users redhat com
https://www.redhat.com/mailman/listinfo/rhn-users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]