歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 4升級到4.9

CentOS 4升級到4.9

日期:2017/2/28 16:09:28   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved