Fedora 8软件包更新工具出错的解决

就在前天,我的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']
repomirrors: {'InstallMedia': [], 'livna': ['http://rpm.livna.org/Fedora/8/i386/', 'http://livna.cat.pdx.edu/Fedora/8/i386/', 'http://wftp.tu-chemnitz.de/pub/linux/livna/Fedora/8/i386/', 'ftp://mirrors.tummy.com/pub/rpm.livna.org/Fedora/8/i386/', 'http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/Fedora/8/i386/', 'http://mirror.atrpms.net/livna/Fedora/8/i386/'], 'Fedora': ['http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/8/Everything/i386/os', 'http://opensource.nchc.org.tw/Fedora/linux/releases/8/Everything/i386/os', 'http://linux.ntcu.net/ftp/dists/Fedora/releases/8/Everything/i386/os', 'http://mirror.wbut.ac.in/pub/Fedora/linux/releases/8/Everything/i386/os', 'http://ftp.riken.jp/Linux/Fedora/releases/8/Everything/i386/os', 'ftp://ftp.cs.hacettepe.edu.tr/pub/mirrors/Fedora/linux/releases/8/Everything/i386/os', 'http://allotter.yandex.net/Fedora/linux/releases/8/Everything/i386/os', 'http://spreader.yandex.net/Fedora/linux/releases/8/Everything/i386/os']}


问题出现的原因是,安装yum-plugin-fastestmirror(自动挑选快的镜像站)这个插件,他把这个文件/etc/yum.conf里面的plugins=1改成了1,所以就使得Fedora 8软件包更新工具出现错误我们只要把这个改成plugins=0

过程如下:
运行终端输入 su
输入密码:
gedit /etc/yum.conf
打开文件后,找到plugins=1这个把值改成plugins=0,保存退出就行了!

现在就可以使用Fedora 8软件包更新工具了

如果你使用YUM命令来更新,你还是可以把刚才改了那个值又改回来,又可以让他自动选择最快的的镜像站了,我一般是使用的yumex图形前端来安装软件,这样比较方便,但是向安装SKYPE2 for linux这类的软件就会出问题,所以只要按我说的做,就一定可以解决问题!

原创谢谢大家支持!

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/28fe9d5e5c573107abd9ce1e79330ed2.html