When the installation of Docker fails in the Baota panel, the following method can be used to rebuild the rpm.
Directory where rpmdb is located#
cd /var/lib/rpm
Clear the original rpmdb files#
rm -f __db.*
Rebuild the rpm database#
rpm --rebuilddb
Clear all yum caches#
yum clean all