Just the day before yesterday, when my Fedora8 system was installing SKYPE2.0, I found that my Fedora8 Software Package update tool had an error. I searched the internet and didn't see anyone who could solve this problem, so I only solved the problem myself and wrote this article, hoping to help those who encountered the same problem solve the problem! I first tested whether to add the original problem, deleted the YUM configuration file, and automatically generated it again, this proves that the internet says that the yum source added to freshrpms has a problem.
Just the day before yesterday, when my Fedora 8 system was installing SKYPE 2.0, I found that my Fedora 8 Software Package update tool had an error, I searched the internet and did not see anyone who could solve this problem. So I only had to solve it myself and wrote this article, hoping to help those who encountered the same problem solve the problem!
I first tested whether to add the original problem, deleted the YUM configuration file, and automatically generated it again, this proves that they have said that the yum source with freshrpms is incorrect, and the yum source with freshrpms is incorrect, I was wondering if there was a problem between "fastestmirrort" and "Fedora 8 Software Package update tool? I want to change the configuration file plugins = 1 when fastestmirror is installed,
The following error or similar error occurs when you run the Fedora 8 Software Package update tool.
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
Conducting it.info (2, "* % s: % s" % (str (repo), host (repo. urls [0])
IndexError: list index out of range
Local variables in innermost frame:
Repo: InstallMedia
Conducting it:
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', 'ora ora-source', 'development-debuginfo', 'livna-testing-debug', 'livna-testing-source']
Repomirrors: {'installmedia ': [], 'livna': ['HTTP: // rpm.livna.org/fedora/8/ I #/', 'HTTP: // rewrite, 'HTTP: // restore, 'ftp: // response, 'HTTP: // response, 'HTTP: // pai.atrpms.net/livna/fedora/8/ I #/'], 'ora ora ': ['HTTP: // response, 'HTTP: // response,' http: // response, 'HTTP: // linux.ntcu.net/ftp/dists/fedora/releases/8/everything/ I #/ OS ', 'HTTP: // mirror. wbut. ac. in/pub/Fedora/linux/releases/8/Everything/i386/OS ', 'HTTP: // container, 'ftp: // ftp.cs.hacettepe.edu. tr/pub/mirrors/Fedora/linux/releases/8/Everything/i386/OS ', 'HTTP: // container, 'HTTP: // container}
The cause of the problem is that the plug-in yum-plugin-fastestmirror (automatically selected fast image site) is installed, and the file/etc/yum. the plugins = 1 in conf is changed to 1, so the Fedora 8 Software Package update tool has an error. We only need to change this to plugins = 0.
The process is as follows:
Run terminal input su
Enter the password:
Gedit/etc/yum. conf
After opening the file, find plugins = 1 and change the value to plugins = 0. Save and exit!
Now you can use the Fedora 8 Software Package update tool.
If you use the YUM command to update, you can change the value you just changed back, and then let him automatically select the fastest image site, I usually use the yumex graphic front-end to install software, which is more convenient, but there will be problems with software such as installing SKYPE2 for linux, so as long as I do what I said, it will certainly solve the problem!
Original thanks for your support!