LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2004, 10:11 AM   #1
naza
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
Trouble with RPM


Hello am new to this board but have been using linux for a while but am still a "beginner"

anyway, i seem to have developed a problem with rpm

Whenever i run anything with rpm i get the following:

rpmdb: fatal region error detected; run recovery
error: db4 error(-30981) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30982)
error: cannot open Packages database in /var/lib/rpm

Any ideas?

Have searched these forums foir similar woes hand found a reference to "rpm -rebuilddb" but get same arror when i run this.

Any advice greatly appreciated

Thank you in advance


Naza
 
Old 02-05-2004, 10:17 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Welcome to linuxquestions Naza. What it looks like is you have a bad install of db3 or rpm itself. What distribution are you running there?
 
Old 02-05-2004, 10:21 AM   #3
naza
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Mandrake 9.0 here, which has been perfect since i installed it about 6 months ago. I have installed a few packages without any problems. only came accross this the other day when i tried to upgrade webmin.

Naz
 
Old 02-05-2004, 11:27 AM   #4
naza
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I appear to have resolved this issue now,

For those intrested if you reboot the machine "rpm --rebuilddb" does work as long as you havent done anyting with rpm since rebooting!!

SORTED!!
 
Old 02-05-2004, 11:40 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
hmmm, that really stinks, only thing that should require a reboot is installing a new kernel. That is some bad code.
 
Old 02-05-2004, 11:54 AM   #6
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
You may have had a rpm process running that wasn't finished or was lingering. Next time, see if a rpm process is running (ie ps -A | grep rpm) and kill it. Then try the 'rpm --rebuild'. It shouldn't matter if the system was rebooted or not in Linux.
 
Old 02-05-2004, 11:57 AM   #7
naza
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Great thank you for your help.

Finally managed to get my imap/pop server up and running now.

Life is good again.

Naza
 
  


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
.RPM Trouble - .rpm was not found on the medium Sporadic SUSE / openSUSE 8 12-02-2004 05:49 PM
RPM trouble coolfrog Linux - General 7 10-06-2004 05:23 PM
Trouble installing an rpm... hpnadig Mandriva 3 04-11-2004 12:21 AM
rpm trouble johan grav Linux - Software 3 03-02-2003 02:11 AM
RPM trouble anolan514 Linux - Newbie 3 11-24-2001 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:54 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