rpmdb_verify: /var/lib/rpm/Basenames: DB_VERIFY_BAD: Database verification failed

This document (000020247) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12

Situation

rpmdb_verify command is getting the following messages:
# /usr/lib/rpm/rpmdb_verify /var/lib/rpm/Basenames
rpmdb_verify: Page 1424: unreferenced page
rpmdb_verify: Page 1424: totally zeroed page
...
rpmdb_verify: Page 1443: unreferenced page
rpmdb_verify: Page 1443: totally zeroed page
rpmdb_verify: /var/lib/rpm/Basenames: DB_VERIFY_BAD: Database verification failed

Resolution

Try to run the following to ebuild RPM database.

1. Backup of RPM database
mkdir /tmp/rpm_backup
rsync -av /var/lib/rpm/. /tmp/rpm_backup/.
2. Rebuild RPM database
rpm -vv --rebuilddb > /tmp/rpm_rebuilddb.log 2>&1
3. Check if there are no more messages/errors
/usr/lib/rpm/rpmdb_verify /var/lib/rpm/Basenames

Cause

/var/lib/rpm/Basenames is broken and this should be fixed by rebuilding the RPM database.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020247
  • Creation Date: 14-May-2021
  • Modified Date:31-May-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center