LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Yum fails with "GLib-CRITICAL" (https://www.linuxquestions.org/questions/linux-software-2/yum-fails-with-glib-critical-624485/)

Seregwethrin 02-28-2008 08:51 AM

Yum fails with "GLib-CRITICAL"
 
I'm trying to install or search anything with yum like yum install webalizer. But i get that error every time.

I searched it at Google but i can't find any useful solution.

Also I've installed the glib-2.14.5 by compiling, not with rpms. But couldn't fix.

Do you have an idea for this problem?

I'm using CentOS 4

Code:

# yum install webalizer
Setting up Install Process
Setting up repositories
kbs-CentOS-Extras        100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files

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

(process:8013): 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 470, in doCommands
    return self.installPkgs()
  File "/usr/share/yum-cli/cli.py", line 836, in installPkgs
    self.doRepoSetup()
  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


mtimbro 02-28-2008 01:53 PM

Can you post the output of these two commands:

>rpm -qa | grep -i python
>rpm -qa | grep -i glibc

Cheers,

Seregwethrin 02-28-2008 02:46 PM

I installed/re-installed the

# yum
# sqlite
# python-sqlite
# python-elementtree
# python-urlgrabber


packets from http://mirror.centos.org/centos/4/os/

It's working again now :)

Thankf for your post.

johnlace65 09-02-2008 09:00 PM

Solving the Critical error.
 
To solve the Critical error:

What I did was simple, and fixed the problem.

I reinstalled an older available version of yum. Quick fix. Search your box or download one.

I used:
rpm -i --force yum-2.4.3-1.c4.noarch.rpm

i for install
force to replace a newer one. mine was 2.4.4, the broken one.

Best regards

John Lace

Cudo29 07-30-2012 08:39 PM

URL is changed
 
Quote:

Originally Posted by Seregwethrin (Post 3073049)

Now this URL already invalid. Current valid URL is following:
http://vault.centos.org/4.9/os/


All times are GMT -5. The time now is 10:01 PM.