Skip to main content
Asked a question 6 years ago

How do I solve a yum update failure problem?

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

Depends what the failure is. If it is due to a corrupt rpm database, then a cure that often works is to run something like the following:

[root@bright60 ~]# 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
[root@bright60 ~]# rpm --rebuilddb
[root@bright60 ~]# yum clean all

Then, run yum update again. If that doesn't solve the issue, filesystem corruption may be a culprit.

Possibilities to consider that may have caused the issue:

  1. Killing yum commands brutally
  2. filesystem corruption
  3. inconsistency in repository database due to it being in the middle of a major update
  4. descent into RPM dependency hell due to installation of software from outside the repository
  5. other.

If it is not a corrupt yum database, then consider these possibilities: