Yum install update prompts rpmdb:thread/process Failed:thread died in Berkeley DB Library

Source: Internet
Author: User
Tags net thread


After Yum install soft

The following error occurred: Rpmdb:www.111cn.net thread/process 10646/3086534416 Failed:thread died in Berkeley DB Library

Analyze the reason

Because of the RPM database damage caused, it caused all the software upgrades, installation and even delete will have problems, the terminal appears garbled, Yumex also use, RPM command is not used. The reason is that the RPM database is corrupted


Su-root
cd/var/lib/rpm/
For i in ' ls | grep ' db. '; Do MV $i $i. Bak;done #做一下备份www. 111cn.net
RPM--REBUILDDB #重建该数据库 (Rebuild the database indices from the installed package headers)
Yum Clean All

Note the difference:--rebuilddb: Rebuilding an already installed RPM repository,--initdb: Creating a new RPM repository


My solution

The following RPM temporary files need to be cleaned at this time

# rm-fr/var/lib/rpm/__db.*

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.