I tried to update my CentOS 7.2 virtual machine, as I usually do using “yum updade” command, but today, I’m unlunky, I got pages and pages of this gaga message :

 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.
 error: rpmdb: damaged header #1421 retrieved -- skipping.

Pressing Control-C doesn’t stop this process, I need to open anotgher session to send “kill -9 process-ID” signal.

How to fix this issue ?

The RPM database has been corrupted, and need to be rebuilt…

Just launc this command :

[root@centos ~]# rpm --rebuilddb
 error: rpmdbNextIterator: skipping h#    1421 Header V4 DSA/SHA1 Signature, key ID 192a7d7d: BAD

You are now able to launch this command :

[root@centos ~]# yum update

 

en.pdf24.org    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*