Linux Troubleshooting: Rpmdb:PANIC:fatal region error detected; Run recovery

Source: Internet
Author: User

[[email protected] ~]$ sudo rpm-ivh mysql-server-5.6.20-1.el6.x86_64.rpm rpmdb:PANIC:fatal region error detected; Run recovery

When installing MySQL, prompt rpmdb error. Google a bit of the CentOS KB, the solution is as follows:

Need to clear the RPM database, for insurance purposes, the data in the/VAR/LIB/RPM directory to make a backup to/home/tmp

[[Email protected] /]$ ls -l /var/lib/rpm/_*-rw-r--r-- 1 root root    24576 aug 22 00:13 /var/lib/rpm/__db.001-rw-r--r-- 1 root  root  229376 aug 22 00:13 /var/lib/rpm/__db.002-rw-r--r-- 1 root  root 1318912 aug 22 00:13 /var/lib/rpm/__db.003-rw-r--r-- 1 root  root  753664 aug 22 00:13 /var/lib/rpm/__db.004[[email protected]  home]$ sudo ls -l /var/lib/rpm/_*-rw-r--r-- 1 root root    24576 Aug 22 00:13 /var/lib/rpm/__db.001-rw-r--r-- 1 root root   229376 Aug 22 00:13 /var/lib/rpm/__db.002-rw-r--r-- 1 root root  1318912 aug 22 00:13 /var/lib/rpm/__db.003-rw-r--r-- 1 root root   753664 aug 22 00:13 /var/lib/rpm/__db.004[[email protected] home]$ sudo cp -avr /var/lib/ rpm/ /home/tmp/

Then start cleaning up RMP db, as follows

[[Email protected] ~]$ sudo ls -l /var/lib/rpm/_*-rw-r--r-- 1 root  root   24576 aug 22 00:13 /var/lib/rpm/__db.001-rw-r--r-- 1  root root  229376 aug 22 00:13 /var/lib/rpm/__db.002-rw-r--r-- 1  root root 1318912 aug 22 00:13 /var/lib/rpm/__db.003-rw-r--r-- 1  root root  753664 Aug 22 00:13 /var/lib/rpm/__db.004[[email  Protected] ~]$ sudo rm -f /var/lib/rpm/_*[[email protected] ~]$ sudo  ls -l /var/lib/rpm/_*ls: cannot access /var/lib/rpm/_*: No such  file or directory[[email protected] ~]$ sudo db_verify /var/lib/rpm/ Packagesdb_verify: page 7709: overflow page of invalid type 13db_ Verify: page 3828: page 6681 encountered a second time on free listdb_verify: /var/lib/rpm/ packages: db_verify_bad: database verification failed[[email protected] ~]$  sudo rpm --rebuilddberror: rpmdbNextIterator: skipping h#      622 blob size (3816):  bad, 8 + 16 * il (0)  + dl (0) Error: rpmdbnextiterator: skipping h#     622 blob size (3816 ):  bad, 8 + 16 * il (0)  + dl (0) [[email protected] ~]$  sudo yum clean all[[email protected] ~]$ sudo yum update# here to save updated content # total download size: 209 mis this ok [y/n]: y# download package and install #

Look at the process here all the bags are re-installed and then clean again. But the RPM and Yum functions are normal.

This article is from "The Old Artisan" blog, reprint please contact the author!

Linux Troubleshooting: Rpmdb:PANIC:fatal region error detected; Run recovery

Related Article

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: 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.