RPM Problems
getting these errors:
---------------- # up2date error: cannot open Packages index using db3 - No such file or directory (2) Traceback (innermost last): File "/usr/sbin/up2date", line 17, in ? from up2date_client import rpcServer File "/usr/share/rhn/up2date_client/rpcServer.py", line 8, in ? import up2dateAuth File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 4, in ? import rpmSource File "/usr/share/rhn/up2date_client/rpmSource.py", line 11, in ? import up2dateUtils File "/usr/share/rhn/up2date_client/up2dateUtils.py", line 15, in ? import rpmUtils File "/usr/share/rhn/up2date_client/rpmUtils.py", line 274, in ? rpm_version = getRpmVersion() File "/usr/share/rhn/up2date_client/rpmUtils.py", line 265, in getRpmVersion db = openrpmdb() File "/usr/share/rhn/up2date_client/rpmUtils.py", line 52, in openrpmdb raise up2dateErrors.RpmError(_("Could not open RPM database for reading. Perhaps it is already in use?")) up2date_client.up2dateErrors.RpmError: RPM error. The message was: Could not open RPM database for reading. Perhaps it is already in use? ------------- any ideas? I requested a Red Hat Linux 7.3 reinstall recently. Could this be because it wasn't installed fully? Any ideas how to correct this without another install? |
# rpm --rebuilddb
error: cannot open Packages index any ideas? |
Did you download the new up2date utility, (8-29-2003)?
https://rhn.redhat.com/errata/RHSA-2003-267.html Josh |
No, but doesn't this have something to do with the RPM database being corrupt?
|
Hmmm, you could try to run rpm --initdb, which would recreate/create your rpm db. Then you could run your rpm --rebuilddb to build the table with the headers that you currently have installed..
Josh |
# rpm --initdb
error: cannot open Packages index using db3 - No such file or directory (2) wow.. anyone has any ideas? I simply want to use RPM |
Hmm, I've seen this before.
Does the /var/lib/rpm/ directory exist? If not, create it! Ian |
OK. I solved this problem. Had to reinstall the db3x package
|
All times are GMT -5. The time now is 09:34 AM. |