LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   RPM Problems (https://www.linuxquestions.org/questions/linux-software-2/rpm-problems-120741/)

OrdinaryGuy 11-28-2003 10:56 AM

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?

OrdinaryGuy 11-28-2003 11:00 AM

# rpm --rebuilddb
error: cannot open Packages index

any ideas?

ter_roshak 11-28-2003 11:07 AM

Did you download the new up2date utility, (8-29-2003)?

https://rhn.redhat.com/errata/RHSA-2003-267.html

Josh

OrdinaryGuy 11-28-2003 11:12 AM

No, but doesn't this have something to do with the RPM database being corrupt?

ter_roshak 11-28-2003 11:24 AM

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

OrdinaryGuy 11-28-2003 11:28 AM

# 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

green_dragon37 11-28-2003 12:55 PM

Hmm, I've seen this before.

Does the /var/lib/rpm/ directory exist? If not, create it!

Ian

OrdinaryGuy 11-28-2003 08:12 PM

OK. I solved this problem. Had to reinstall the db3x package


All times are GMT -5. The time now is 09:34 AM.