Find the answer to your Linux question:
Results 1 to 6 of 6
Yum and Zypper command not working... for any cmds like install , search , update the yum is not working. i am gettin "_rpm.error: rpmdb open failed". can somebody help ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    4

    Question Yum not working

    Yum and Zypper command not working... for any cmds like install , search , update the yum is not working. i am gettin "_rpm.error: rpmdb open failed". can somebody help me out pls... ?? bcoz of this i am not able to move further

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Hi and welcome to the forum. Try the following commands as root
    Code:
    yum clean all
    rm -f /var/lib/rpm/__db*
    rpm --rebuilddb
    yum update

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    4

    Unhappy Re: Yum not working Still

    I tried all the cmds b4 itself.. not working. "yum clean all" is itself not working. the error i am getting is

    "error: dbiOpen: dbapi 1 not available error: cannot open Packages database in /var/lib/rpm" traceback (most recent call last):
    _rpm.error: rpmdb open failed"

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    It seems like there is a problem with your rpm database. Make sure you are root and try
    Code:
    rm -f /var/lib/rpm/__db*
    rpm --rebuilddb

  5. #5
    Just Joined!
    Join Date
    Jan 2011
    Posts
    4

    Unhappy As root only

    Ya i gave those commands as root only. still not working. whether reinstallin OS wil solve the prob ??? to the worst case i am goin to do that only. bcoz i cant proceed

  6. #6
    Just Joined!
    Join Date
    Nov 2010
    Posts
    61
    download yum the old fasioned way from yum - Trac and install it over the current install.

Posting Permissions

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