CentOS 4升级yum后yum不能使用解决办法。
Yum fails “GLib-CRITICAL”
yum check-update
(process:25406): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL’ failed
(process:25406): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL’ failed
TypeError: Can not create index on requires table: near “NOT”: syntax error
方法:
rpm -Uvh http://mirrors.sohu.com/centos/4.8/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
rpm -Uvh http://mirrors.sohu.com/centos/4.8/os/i386/CentOS/RPMS/sqlite-devel-3.3.6-2.i386.rpm
然后
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS4-Base-163.repo -O /etc/yum.repos.d/CentOS-Base.repo
yum clean all
yum update kernel* -y
yum update glibc\* -y
yum update yum\* rpm\* pyth\* -y
yum update mkinitrd nash -y
yum update selinux\* -y
yum update -y
shutdown -rf now