FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Error: rpmdb open failed

    I just installed Fedora14. When I click on the software update, or try and install any software I get the "Failed to initialize packaging backend. This may occur when other packaging tools are used simultaneously." This is the exact details

    Traceback (most recent call last):
    File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 3287, in __init__
    self.repos.confirm_func = self._repo_gpg_confirm
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 823, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 546, in _getRepos
    self.conf # touch the config class first
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 831, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 277, in _getConfig
    startupconf = config.readStartupConfig(fn, root)
    File "/usr/lib/python2.7/site-packages/yum/config.py", line 859, in readStartupConfig
    startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
    File "/usr/lib/python2.7/site-packages/yum/config.py", line 1004, in _getsysver
    raise Errors.YumBaseError("Error: " + str(e))
    YumBaseError: Error: rpmdb open failed


    If anyone can help me out I would appreciate it. Thank you.

  2. #2
    Join Date
    Feb 2008
    Location
    Sydney Australia
    Age
    71
    Posts
    2,692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    First thing to try with any error like this i, as root,

    yum clean all

    then

    yum update

  3. #3
    Join Date
    Jan 2010
    Posts
    8,698
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    If that doesn't help then try, as root or with root privilege

    rm -rf /var/lib/rpm/__db*

    rpm --rebuilddb

  4. #4
    Join Date
    Jan 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Quote Originally Posted by ozjd
    First thing to try with any error like this i, as root,

    yum clean all

    then

    yum update
    When I go to update yum is says it can't find the site. Also, When my system checks the sources for my updates(i think that's what its trying to do), it says it can't find install media nor fedora(this is when im trying to click on a repository). Is there somewhere I have to enter the site url?

    ---------- Post added at 02:19 PM ---------- Previous post was at 02:10 PM ----------

    Quote Originally Posted by smr54
    If that doesn't help then try, as root or with root privilege

    rm -rf /var/lib/rpm/__db*

    rpm --rebuilddb
    I've done this and I don't have any errors. When I go to update software it says there are no updates available. There used to be like 20. Is it possible that my system downloaded and installed them without prompting me? Also, as my reply to ozjd, When my system checks the sources for my updates(i think that's what its trying to do), it says it can't find install media nor fedora(this is when im trying to click on a repository). Is there somewhere I have to enter the site url?
    Last edited by plummerblue; 19th January 2011 at 08:23 PM.

  5. #5
    Join Date
    Jan 2010
    Posts
    8,698
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Ok, it's good that you had no errors. I would then try yum clean all again and once again try to update.

    If that doesn't work, you might try changing /etc/yum.repos.d/fedora.repo from the mirror list to the base url--that is, there are usually two entries, a mirror list and a commented out line (a line with a # in front of it) giving a base url. Try commenting the mirror, uncommenting the base url line and then just running updates from Fedora

    yum --disablerepo=\* --enablerepo=fedora update


    and see what happens.

  6. #6
    Join Date
    Feb 2008
    Location
    Sydney Australia
    Age
    71
    Posts
    2,692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    I would also disable the install media by commenting the appropriate line as smr54 describes.

  7. #7
    Join Date
    Jan 2010
    Posts
    8,698
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Ah is that in the Fedora repo? (I'm working here from CentOS, which has a separate media repo that I just remove after installation.)

  8. #8
    Join Date
    Feb 2008
    Location
    Sydney Australia
    Age
    71
    Posts
    2,692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Fedora normally removes the install media too but plummerblue reported an error with the install media not found. Unless he meant he was in packagekit and tried to access that media.

  9. #9
    Join Date
    Jan 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Quote Originally Posted by smr54
    Ok, it's good that you had no errors. I would then try yum clean all again and once again try to update.

    If that doesn't work, you might try changing /etc/yum.repos.d/fedora.repo from the mirror list to the base url--that is, there are usually two entries, a mirror list and a commented out line (a line with a # in front of it) giving a base url. Try commenting the mirror, uncommenting the base url line and then just running updates from Fedora

    yum --disablerepo=\* --enablerepo=fedora update


    and see what happens.
    I found the file, and I know what you mean by them commenting the url out, but I can't seem to edit the file.

  10. #10
    Join Date
    Feb 2008
    Location
    Sydney Australia
    Age
    71
    Posts
    2,692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    Quote Originally Posted by plummerblue
    I found the file, and I know what you mean by them commenting the url out, but I can't seem to edit the file.
    You need to be root. In a terminal type
    su -
    notice the space then minus sign.

  11. #11
    Join Date
    Jan 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error: rpmdb open failed

    I was told to do this from another guy that runs linux. He said it would get YUM working

    Go fetch the latest F12 RPM from Koji builder (the 'noarch' RPM, not the 'src.rpm'): http://koji.fedoraproject.org/koji/b...buildID=140852

    Download it to a convenient folder (remember where you put it, because I won't know), and install with:
    su
    rpm -Uvh --replacefiles --replacepkgs /PATH/to/RPM/fedora-release*.rpm

    Then YUM should work again.

    It updated for a little then started giving me errors. I went back to the repositories and there were fedora 12 repositories added. Even on Add/Remove programs, it pulls up packages that i don't have but it gives an error when i try. Before it didn't bring up the packages i did have. When I click on Fedora 14 uploaded in the repository area, I still get the


    Could not contact media source 'install Media', so it will be disabled.

Similar Threads

  1. Replies: 2
    Last Post: 3rd December 2009, 12:54 AM
  2. rpmdb open failed
    By asulwer in forum Using Fedora
    Replies: 2
    Last Post: 24th March 2007, 08:20 PM
  3. rpmdb open failed
    By Plossl in forum Using Fedora
    Replies: 2
    Last Post: 13th January 2007, 03:17 PM
  4. TypeError: rpmdb open failed
    By Red Knuckles in forum Using Fedora
    Replies: 19
    Last Post: 24th December 2006, 01:03 AM
  5. error: failed to open /etc/mtab: Input/output error
    By shatter in forum Using Fedora
    Replies: 0
    Last Post: 17th March 2006, 03:16 AM

Tags for this Thread

Posting Permissions

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