Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    175
    Likes Received:
    9
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    "WHM Home » Software » Rebuild RPM Database"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice