The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot open Packages database YUM error

Discussion in 'General Discussion' started by Kundan S, Feb 26, 2017.

Tags:
  1. Kundan S

    Kundan S Registered

    Joined:
    Aug 2, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nashik
    cPanel Access Level:
    Root Administrator
    I have different problem, but as it is related to yum update I am posting my question here.

    I have tried to update yum on one of my VPS (with cpanel on it) and it run into error. Any help would be appreciated.

    Error as below.
    ===========================================
    rpmdb: Thread/process 29586/140397819602848 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 - (-30974)
    error: cannot open Packages database in /var/lib/rpm
    CRITICAL:yum.main:

    Error: rpmdb open failed
    ==========================================

    Thanks.
    Kundan Sonawane
    - Removed -
     
    #1 Kundan S, Feb 26, 2017
    Last edited by a moderator: Feb 26, 2017
  2. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    172
    Likes Received:
    8
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hi,

    Try rebuilding RPM database:

    rm -f /var/lib/rpm/__db*
    db_verify /var/lib/rpm/Packages
    rpm --rebuilddb
    yum clean all
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can also try using the following option in Web Host Manager:

    "WHM Home » Software » Rebuild RPM Database"

    Thank you.
     
Loading...

Share This Page