Red Hat Bugzilla – Bug 477809
yum update fails
Last modified: 2014-01-21 18:07:45 EST
Description of problem:
When I do "yum update" I get:
Loaded plugins: refresh-packagekit
rpmdb: Thread/process 6983/3087210176 failed: Thread died in Berkeley DB library
Then nothing happens.
If "yum clean all" doesn't fix your problem, would you please try to rebuild your rpmdb and let us know if 'yum update' then works? Follow these steps:
# rm -rf /var/lib/rpm/__db*
# rpm --rebuilddb
Uno, is /var/lib/rpm on ext4 filesystem by any chance?
Having the same problem on amd64 system. Yum clean all does not help
(i even get the error while doing that).
Trying database rebuild. Ok
Repeated yum clean all. Ok
Trying yum check-updates - seems to be okay.
Do we have a "rpm --rebuilddb" in the post section of rpm/db* or something similar?
Just curiosity ;-)
Thanks for your help.
Now that's a horrible idea. There's no evidence here that rebuilddb is needed in any of these cases, it's the BDB environment, not the actual database, that's likely to be corrupted here.
People seeing the "Thread died in Berkeley DB library" errors: what filesystem is /var on? On all cases I've seen so far, it's been ext4 - see bug 468437.
(In reply to comment #1)
> Hi Uno,
> If "yum clean all" doesn't fix your problem, would you please try to rebuild
> your rpmdb and let us know if 'yum update' then works? Follow these steps:
> # rm -rf /var/lib/rpm/__db*
> # rpm --rebuilddb
> Many thanks.
Yes, that fixed the problem. Unless somebody somedboy wants to investigate why it happened this bug could be closed.
I have exactly the same problems. "yum clean all" does not work and returns the same error as described above. Rebuilding the database did work.
My laptop recently crashed as my batteries ran out of power and gnome-power-manager did not shutdown in time. However the database errors have come with the latest update I did today. I'm NOT using ext4 as filesystem on /var, so this might not be related to bug 468437.
Are there any informations I could supply for further investigations?
Thanks for the rebuilding-command!