Braindump

Broken Yum Update

Braindump.BrokenYumUpdate History

Hide minor edits - Show changes to output

January 12, 2010, at 03:32 PM by 192.33.126.162 -
Added lines 1-20:
!! What to do if yum update is broken

If @@yum update@@ is broken and you get a Python stack trace similar to this one:

[@
[root@someserver ~]# yum update
... stack trace here ...
TypeError: unsubscriptable object
[root@someserver ~]#
@]

Fix it like that:
[@
[root@someserver ~]# yum clean metadata
Loaded plugins: kernel-module
24 metadata files removed
12 sqlite files removed
0 metadata files removed
[root@someserver ~]#
@]