Logo
My Journal
Blog

Timeline

Blog

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

1 Comments
    • Balakumar
      Oct 7, 2009 at 6:48 AM / Reply

      Thanks .. It helped me to recover Yum

Leave A Comment