LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-23-2004, 03:33 PM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
problem with rmp database


I tried to use find in Gnome and got an alert that the database hadn't been updated in more than 8 days. I didn't remember exactly how to update it so I tried running

Code:
[root@localhost linmix]# updatedb
later I remembered that the original command had been

Code:
[root@localhost linmix]# rpm --updatedb
but the first one appeared to work allright. Then I tried to find out if I had a dependency installed and did rpm -q with the following result:

Code:
[root@localhost linmix]# rpm -qi compat-libstdc++
error: cannot get shared lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
package compat-libstdc++ is not installed
I think all three errors are related to the same problem and that it may be due to the bad command I issued before. I've thought of manually removing the database (/var/lib/rpm/Packages) and making a new database (something like "rpm --makedb", probably not exactly right, but I can't check it now), but then I thought that this might affect the Install/Uninstall utility (although that always reads the headers, whatever that means). Can anyone tell me if my assumptions are correct, and how to fix this error?
 
Old 07-23-2004, 03:44 PM   #2
zakaluka
Member
 
Registered: Oct 2003
Posts: 58

Rep: Reputation: 15
I've had that error when I try to use the DB while the database is still being updated in the background. Are you sure the command has finished running (top, ps, ...)?

Regards,

zakaluka.
 
Old 07-23-2004, 03:48 PM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
I'll try running it again as soon as I'm back in Linux
 
Old 07-24-2004, 02:52 AM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Database update must still have been underway. I tried again after reboot (needed to get into windows) and everything worked perfectly.
 
Old 07-24-2004, 07:54 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Updatedb builds the database of all installed files on the system, and is seperate from rpm. If you suspect that the rpm database is corrupt, you can rebuild it with the command rpm --rebuilddb.
 
  


Reply



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
Where is my Installed RMP? mussussu Linux - Software 4 11-01-2005 12:39 PM
what can i do with the *.rmp ? lolo261073 Linux - Newbie 3 09-01-2004 07:52 AM
RMP packages sigep739 Linux - Software 2 06-02-2004 11:16 PM
repair RMP playernovis Linux - Software 3 07-22-2003 02:19 AM
installing rmp qanopus Linux - General 4 04-10-2003 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 PM.

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
Open Source Consulting | Domain Registration