yum crashes when trying to update

Yum crashes (and pirut, and pup, and yumex) upon trying to update

File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, in _packageByKey
po = self.pc(repo, cur.fetchone())
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init__
self._read_db_obj(db_obj)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object

commands to fix:
yum clean metadata
and/or
yum clean all

if still not working use this one

#rm /dev/urandom
#mknod -m 644 /dev/urandom c 1 9

One thought on “yum crashes when trying to update

Leave a Reply

Your email address will not be published. Required fields are marked *