在RHEL4.5下使用
# yum update -y
出现如下的报错
Setting up Install Process
Setting up repositories
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:3221): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assert ion `timer != NULL' failed
(process:3221): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): asse rtion `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 getPrimar y
self.repoid))
TypeError: Can not create index on requires table: near "NOT": syntax error
解决的方法是到 下载以下rpm包并执行强制安装
yum
sqlite
python-sqlite
python-elementtree
python-urlgrabber
rpm -i --force *
问题解决!
阅读(2120) | 评论(0) | 转发(0) |