RPM Database Corrupted

ERROR: The system cannot update the /var/cpanel/sysinfo.config file because it cannot determine your distribution's major version.
Run the following command: rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release
Output other than the numbers 5 or 6 indicates a problem. Open a support ticket or resolve the issue manually.

The system cannot update the /var/cpanel/sysinfo.config file. at /usr/local/cpanel/Cpanel/GenSysInfo.pm line 106.
The issue was due to corrupt RPM database and resolve by the follwing steps.

# mkdir /root/old_rpm_dbs/

# mv /var/lib/rpm/__db* /root/old_rpm_dbs/

# rpm –rebuilddb

Leave a Reply

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