感谢支持
我们一直在努力

CentOS 4升级到4.9

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

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS 4升级到4.9
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏