FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Exclamation PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora 25

    By adamw on June 9, 2017

    Hi there, folks!

    This is an important PSA for Fedora 24, 25 and 26 (pre-release) version users: if you recently updated and got some kind of error or crash and now you’re getting RPM database errors, you need to do the old reliable RPM database fix dance:

    Code:
    # rm -f /var/lib/rpm/__db*
    # rpm --rebuilddb
    and all should be well again. We do apologize for this.

    Longer version: there’s a rather subtle and tricky bug in libdb (the database that RPM uses) which has been causing problems with upgrades from Fedora 24/25 to Fedora 26. The developers have made a few attempts to fix this, and testing this week had indicated that the most recent attempt – libdb-5.3.28-21 – was working well. We believed the fix needed to be applied both on the ‘from’ and the ‘to’ end of any affected transaction, so we went ahead and sent the -21 update out to Fedora 24, 25 and 26.

    Unfortunately it now seems like -21 may still have bugs that were not found in the testing; in the last few hours several people have reported that they hit some kind of crash during an update involving libdb -21, and subsequently there was a problem with their RPM database.

    While we investigate and figure out what to do about fixing this properly, in the short term, if you’re affected, just doing the old “rebuild the RPM database” trick seems to resolve the problem:

    Code:
    # rm -f /var/lib/rpm/__db*
    # rpm --rebuilddb
    It’s unfortunate that we have to break that one out of cold storage (I hadn’t had to do it for so long I’d almost forgotten it…), but it should at least get you back up and working for now.

    We do apologize sincerely for this mess, and we’ll try and do all we can to fix it up ASAP.
    Source

  2. #2
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    What you mean: updating system or upgrading from Fedora version to one higher ?

    What type of error ? error message appearing in terminal during update/(or upgrade) or other form of error ? Please explain !
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  3. #3
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    it affects any package update where you may have encountered an error but also a distribution upgrade as well

  4. #4
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    Quote Originally Posted by antikythera
    it affects any package update where you may have encountered an error but also a distribution upgrade as well
    1) how I know an error occurred or not ?

    2) since how long this database issue dated ?

    3) does error in my bluetooth (blueberry), that you discussed yesterday, could be related to this issue ?

    4) in this weak I faced error with portable program: ICQ messenger Linux package downloaded from their site: they installed but not working (just launched but I can not log in).

    5) regarding code:

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

    a) how long it may need ? Long time, like over night ?

    b) is their a risk from use it if I has no error ?

    c) regarding "__db*" are you sure from this: 2 underscore like this __ I mean _ then _ so become __

    d) does this could need Internet connection ?
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  5. #5
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    how will you know? you'd get an error message like this

    as for the bluetooth issue, no it will not have caused that

    refer to the bugzilla links in the first post for the exact date it was first noticed.

    the command completes in seconds and the format is correct. the line is a double underscore.

    risk? marginal. any rpm rebuild shouldn't break anything but if you haven't had any rpm errors you shouldn't run it just in case. the command can be run offline. I'd also do the following so that next time you run anything that uses dnf it also gets fresh package and metadata from the servers.

    Code:
    dnf clean all
    keep calm and carry on...

  6. #6
    Join Date
    Aug 2016
    Location
    Iraq
    Posts
    770

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    Quote Originally Posted by antikythera
    how will you know? you'd get an error message like this
    1) You mean error message in response to "sudo dnf update --refresh -v" ?

    2) Why update not upgrade ? I mean "sudo dnf upgrade --refresh -v"

    3) What -v mean ?
    Fedora 26 X64 bit Cinnamon edition on Lenovo ThinkPad e550 with Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

  7. #7
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Re: PSA: RPM database issues after update to libdb-5.3.28-21 on Fedora 24 and Fedora

    the -v switch is a universal switch used by many command line applications to direct them to display verbose (full) output.

    any more questions please open another thread.

Similar Threads

  1. Update Issues with NSS on Fedora 19
    By mswal2846 in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 8th October 2013, 01:05 PM
  2. [SOLVED] Can't update from fedora 10 - yum issues
    By ciaranw in forum EOL (End Of Life) Versions
    Replies: 4
    Last Post: 18th September 2011, 10:50 AM
  3. [SOLVED] Install libdb-utils fedora 15
    By x0000000009 in forum Using Fedora
    Replies: 0
    Last Post: 17th August 2011, 07:02 PM
  4. Update issues with Fedora 12 64-bit
    By tron_thomas in forum Using Fedora
    Replies: 4
    Last Post: 15th March 2010, 03:14 AM
  5. Replies: 3
    Last Post: 22nd June 2007, 03:27 PM

Posting Permissions

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