Yum "GLib-CRITICAL" How To Fix

Yum fails "GLib-CRITICAL"

[root@box ~]# yum check-update
Repository atomic is listed more than once in the configuration
Repository plesk is listed more than once in the configuration
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files

(process:7349): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL' failed

(process:7349): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL' failed
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 534, in doCommands
ypl = self.returnPkgLists()
File "/usr/share/yum-cli/cli.py", line 1176, in returnPkgLists
ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
File "__init__.py", line 904, in doPackageLists
File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "__init__.py", line 260, in doSackSetup
File "repos.py", line 277, in populateSack
File "/usr/lib/python2.3/site-packages/sqlitecachec.py", line 40, in getPrimary
self.repoid))
TypeError: Can not create index on requires table: near "NOT": syntax error


Possible Solution "GLib-CRITICAL":

First try it:
# rpm -Uvh http://www.mirrorservice.org/sites/mirror.centos.org/4.6/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm http://www.mirrorservice.org/sites/mirror.centos.org/4.6/os/i386/CentOS/RPMS/sqlite-devel-3.3.6-2.i386.rpm

It should fix the problem, it worked on CentOS. If didnt, go to http://mirror.centos.org/centos/

And install or re-install the next packets:
- glib
- yum
- sqlite
- python-sqlite
- python-elementtree
- python-urlgrabber

Remember to use:
# rpm -Uvh somerpm.rpm

2 Comments:

eizt said...
This comment has been removed by a blog administrator.
redeyesofangel said...

safe me, thanks