Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I am running fedora core 2. I just installed it and ran the yum program to update the softwares. Now midway it kindof got stuck and i terminated the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    tallahassee,florida
    Posts
    3

    rpm database recovery


    Hi,

    I am running fedora core 2. I just installed it and ran the yum program to update the softwares.
    Now midway it kindof got stuck and i terminated the program.
    Now when i try to run yum it says that the database is ciorrupted and needs ro be recovered.

    Error message like ->
    ror: error(-3097 getting "system-config-display.mo" records from Basenames index
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-3097 from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-3097 getting "system-config-display.mo" records from Basenames index
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-3097 from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-3097 getting "system-config-display.mo" records from Basenames index
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-3097 from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-3097 getting "system-config-display.mo" records from Basenames index
    ************************************************** *****

    I tried running the following commands to solve this problem ->

    rm -f /var/lib/rpm/__db*
    #db_verify /var/lib/rpm/Packages
    #rpm --rebuilddb

    But the third command again gives an error ->

    [root@localhost root]# rpm -rebuilddb
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-3097 from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index
    ************************************************** ****************

    SOS !!!!
    Can anybody help out ??


    Regards,
    Atulya

  2. #2
    Just Joined!
    Join Date
    Jan 2005
    Location
    tallahassee,florida
    Posts
    3

    Re:rpm database recovery

    Hi Guys,

    Got the solution to the problem..

    the commands

    rm -f /var/lib/rpm/__db*
    #db_verify /var/lib/rpm/Packages
    #rpm --rebuilddb

    indeed do the trick.
    What i was doing wrong was i didnt realise that there were 2 underscores in _ _ db*.
    My bad !!

    Anyway,got to learnt another feature of linux through this.

    Thanks and regards
    Atulya

  3. #3
    Linux Enthusiast
    Join Date
    Oct 2004
    Posts
    609

    Re:rpm database recovery

    Quote Originally Posted by atulyamahajan
    Anyway,got to learnt another feature of linux through this.
    Good work!
    Try that with Windows

  4. #4
    Just Joined! Dooghy's Avatar
    Join Date
    Jun 2007
    Location
    New Zealand, Auckland
    Posts
    59
    Man, this post saved my computer from being smashed to the ground
    I thought I'm doing something wrong during updates and so on ...

    Still, 'cause I'm a newbie in Linux, would someone tell me what was the cause of error? I would like to know more on how Suse manages updates. I mean, why this sequence of commands solved the problem ...

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    those commands removed rpm database and rebuild new. this problem pops up when rpm database gets corrupted coz of broken updates and unmet dependencies.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined! Dooghy's Avatar
    Join Date
    Jun 2007
    Location
    New Zealand, Auckland
    Posts
    59
    Ok, that makes sense. So all that commands' purpose was to reset the "bad history" for rpm installations. Indeed I had some problems installing the drivers for my printer. So from what you're saying, this could be the reason for having a corrupted rpm database. Am I getting this right?

  7. #7
    Just Joined!
    Join Date
    Aug 2006
    Posts
    48

    Talking

    Quote Originally Posted by atulyamahajan View Post
    Hi Guys,

    Got the solution to the problem..

    the commands

    rm -f /var/lib/rpm/__db*
    #db_verify /var/lib/rpm/Packages
    #rpm --rebuilddb

    indeed do the trick.
    What i was doing wrong was i didnt realise that there were 2 underscores in _ _ db*.
    My bad !!

    Anyway,got to learnt another feature of linux through this.

    Thanks and regards
    Atulya
    Hi Atulya i am also facing same problem and i did rm -f /var/lib/rpm/__db*
    then on next line i did db_verify /var/lib/rpm/Packages
    then it gave the error like
    bash: db_verify: command not found

    i am using fc6. Any idea , suggestion.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi helpmeforlinux !

    This thread is pretty old. I would suggest you to start a new thread and explain your problem in detail there only.
    Sorry for inconvenience.
    Thread Locked.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •