LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2003, 11:56 AM   #1
OrdinaryGuy
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
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?
 
Old 11-28-2003, 12:00 PM   #2
OrdinaryGuy
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
# rpm --rebuilddb
error: cannot open Packages index

any ideas?
 
Old 11-28-2003, 12:07 PM   #3
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Did you download the new up2date utility, (8-29-2003)?

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

Josh
 
Old 11-28-2003, 12:12 PM   #4
OrdinaryGuy
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
No, but doesn't this have something to do with the RPM database being corrupt?
 
Old 11-28-2003, 12:24 PM   #5
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
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
 
Old 11-28-2003, 12:28 PM   #6
OrdinaryGuy
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
# 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
 
Old 11-28-2003, 01:55 PM   #7
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Hmm, I've seen this before.

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

Ian
 
Old 11-28-2003, 09:12 PM   #8
OrdinaryGuy
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
OK. I solved this problem. Had to reinstall the db3x package
 
  


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
RPM problems King of Japan Red Hat 4 01-27-2005 12:04 AM
RPM problems bloodfrost Linux - Newbie 6 05-06-2004 05:47 PM
rpm problems skatcat31 Linux - Software 5 02-23-2004 03:03 AM
RPM Problems Bigun Linux - General 11 06-24-2003 11:27 AM
problems with rpm Jo_Nak Linux - General 5 06-13-2003 09:27 PM


All times are GMT -5. The time now is 04:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration