就在前天,我的Fedora 8系统在安装SKYPE 2.0的时候,我才发现我的Fedora 8软件包更新工具出错问题,我当时在网上搜索了没有看见有人能解决本问题,于是我就只有自己解决,并写了本文章,希望能帮助那些遇到同问题的人解决问题!
我先测试了是不是加入的原的问题,同时也删除过YUM的配置文件并又上他自动生成过,还是不行,这证明了网他们说加入了freshrpms的yum源出问题的一说法是错误的,和其他源出错的问题,我就想是不是因为“fastestmirrort”和“Fedora 8软件包更新工具”之间的问题呢?我想在安装fastestmirror的时候,他会去改一个yum.conf配置文件plugins=1,于是就改过来一试就OK了,
运行Fedora 8软件包更新工具出现下面错误,或同类错误
Component: pirut
Summary: TB4c8309c5 fastestmirror.py:97:postreposetup_hook:IndexError: list index out of range
Traceback (most recent call last):
File "/usr/sbin/pup", line 611, in
main()
File "/usr/sbin/pup", line 607, in main
pup.run()
File "/usr/sbin/pup", line 447, in run
self.doRefresh()
File "/usr/sbin/pup", line 262, in doRefresh
pbar = self.doRefreshRepos(destroy=False)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 339, in doRefreshRepos
self.reposSetup(pbar, thisrepo)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 303, in reposSetup
self.doTsSetup()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 72, in doTsSetup
return self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs
self._getTsInfo()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 384, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 214, in populateSack
self.doSetup()
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 66, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 97, in postreposetup_hook
conduit.info(2, " * %s: %s" % (str(repo), host(repo.urls[0])))
IndexError: list index out of range
Local variables in innermost frame:
repo: InstallMedia
conduit:
repos: ['livna-development', 'updates-source', 'livna-development-debuginfo', 'updates-testing', 'livna', 'updates-testing-source', 'livna-debuginfo', 'Fedora', 'livna-source', 'InstallMedia', 'development-source', 'development', 'updates-debuginfo', 'Fedora-debuginfo', 'livna-development-source', 'updates-testing-debuginfo', 'updates', 'freshrpms', 'livna-testing', 'Fedora-source', 'development-debuginfo', 'livna-testing-debug', 'livna-testing-source']
新闻热点
疑难解答