修复崩溃的RPM数据库

mkdir /root/cptech
cd /var/lib/rpm
mv __db* /root/cptech/
rpm –rebuilddb
rpm -qa | grep release

centos-release-6-9.el6.12.3.x86_64

/scripts/gensysinfo
cat /var/cpanel/sysinfo.config

# This values in this file are calculated and updated if necessary nightly. If you wish to override
# these values, populate lock= with a comma delimited list of keys you don’t want updated.
# This will allow you to change those values to suit your needs.
#
# Example: if you set lock like this, then rpm_dist and rpm_arch will not be updated nightly:
# lock=rpm_dist,rpm_arch
#
ises=2
lock=
release=6.9
rpm_arch=x86_64
rpm_dist=centos
rpm_dist_ver=6

You should now be able to run the cPanel update:

/scripts/upcp –force

Leave a Reply