Background
BCM support frequently receives this question. While support for the underlying OS is out of scope, these are some common issues other customers have encountered that can cause yum update failures.
A Corrupted RPM Database
A corrupt RPM database is the most common cause of yum update failures.
A solution that often works to resolve this issue is to remove existing RPM DB files and rebuild the DB, for example:
# rm /var/lib/rpm/__db.*
rm: remove regular file '/var/lib/rpm/__db.001'? y
rm: remove regular file '/var/lib/rpm/__db.002'? y
rm: remove regular file '/var/lib/rpm/__db.003'? y
rm: remove regular file '/var/lib/rpm/__db.004'? y
# rpm --rebuilddb
# yum clean all
After rebuilding the RPM database, try running yum update again. If that doesn’t solve the issue, filesystem corruption may be a culprit.
Other Issues
- You are behind a proxy
- It is also possible that the yum broker (a load balancer for distributing the load of yum package downloads to various yum mirrors) is not working correctly.
- In that case, a direct mirror can be used instead.
If you continue to have issues after trying the steps above, please contact the support organization for your Operating System.