LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-10-2008, 12:25 PM   #1
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
rpm database corrupted?


Hi,

this is my RH Release:

# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

And this is my error when I try "rpm -aq |grep something..":

# rpm -aq
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
no packages

I've already deleted the __file in /var/lib/rpm, and tried to rebuild database, but:

# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.9334
D: creating directory /var/lib/rpmrebuilddb.9334
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages joinenv
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index
D: removing directory /var/lib/rpmrebuilddb.9334

Some help? Thanks!
 
Old 07-10-2008, 12:47 PM   #2
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by h725 View Post
Hi,

this is my RH Release:

# cat /etc/redhat-release
[...............]

Some help? Thanks!
Sorry, solved by this useful link!


http://people.redhat.com/drepper/assumekernel.html
 
Old 07-10-2008, 12:57 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by h725 View Post
this is my RH Release:
# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
Maybe not what you expected, but since running GNU/Linux is all about performance, protecting assets and providing services in a continuous, stable and secure way I need to emphasise that Red Hat Linux maintenance and errata support ended on April 30 of 2004 for ALL YES ALL Red Hat Linux releases (excluding RHEL). The version you installed is obsolete, no longer maintained and unsupported. This means you miss out on all the new technology that's been around for ages, all the bug fixes and all the security updates. Unless you have the knowledge and time to maintain this setup yourself to keep it from (doing) harm, keeping your machine attached to the Internet makes it a hazard not only for you but for the whole community. So please plan your migration and make it soon. If you like the effort Red Hat puts into certification, ISV acceptance, support longevity and stability of RHEL but don't want to pay for RHEL then you could run CentOS (current is 5.2). If you like what RHL provided then you could run Fedora (stable seems 9). Else check out the many "choose a distro" threads or the megathread at LQ.


Considering you're running an obsolete, no longer maintained and unsupported release of Red Hat Linux (not RHEL) your RPMDB malfunction is the least of your problems.

Last edited by unSpawn; 07-10-2008 at 12:59 PM.
 
Old 07-11-2008, 10:18 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by unSpawn View Post
Considering you're running an obsolete, no longer maintained and unsupported release of Red Hat Linux (not RHEL) your RPMDB malfunction is the least of your problems.
I don't agree with that at all. Plenty of organizations still run older versions of Linux. Are they vulnerable, sure, if not properly maintained but the issue here is to fix his RPM Database, not lecture them on their old version of Red Hat.

Fixing their RPM database can ensure they can properly maintain this older distribution in my opinion, so it is a worry if they want to continue using this legacy product and maintain it using RPM's, etc.
 
  


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
about rpm database sachin_malik Linux - General 1 02-21-2006 02:14 AM
How to delete a corrupted RPM? pelcito Linux - Software 2 09-10-2004 02:17 AM
How to fix corrupted RPM database? Cygnus78 Linux - General 2 05-19-2004 07:26 PM
rpm database palmmjsg23 Linux - General 6 03-09-2004 11:58 PM
RH rpm database gfyspf Red Hat 1 09-17-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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