If you having issue cannot update and get same error like above. It appears that the cPanel server is not able to update the package, which may be a result of an issue with the RPM database. To fix this issue, you need rebuild the RPM database.
How to Fix:
- Access your SSH server as root.
- Running this following command
# mv /var/lib/rpm/__db* /tmp
# rpm --rebuilddb