Situation:
While updating my Fedora, the console displayed this message repeatedly: error: rpmdb: damaged header #4657 retrieved -- skipping.
The RPM database has errors. It could be a bug or a file system corruption.
Associate Problems:
You
can't add, remove, update RPM packages.
Solution:
Use the following command:
rpm --rebuilddb
Reference: