Issue:
While performing a yum update, the installation encountered an error after finding a dependancy missing. The next screen showed DB_RUNRECOVERY error followed by yum crash dump (not the whole LInux system, just for yum.)
Resolution:
$ sudo su
# rm /var/lib/rpm/__db*
( answer Y to each deletion. or add the -f flag. )
# rpm --rebuilddb
(This takes about 15 to 30 seconds.)
# yum clean all
Afterwards, I performed another yum update which was successful.
# yum update
Issue 2:
The above error may leave unfinished transactions. Running yum-complete-transaction cannot complete because now packages have duplicate (multiple) versions installed of packages.
Resolution:
This is complicated and tedious to repair. Try the following:
# yum-complete-transaction --cleanup-only
# package-cleanup --cleandupes
- Answer "Y" to continue.
This will likely NOT cleanup all of the duplicates. The remaining will have to be cleaned manually:
e.g.
# package-cleanup --dupes
# rpm -e --justdb --nodeps abrt-libs-2.0.8-43.el6.centos.x86_64 (remove the newer package)
... repeat above step on each package (note each library done)
# yum install <packages removed above to make sure that each one individually is upgraded cleanly>
# yum update
previous page
|