From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4
Description of problem:
When I run yum update, it sometimes fail with an IndexError: list index out of range. I think it errors when trying to locate a mirror server. It doesn't happen every time though.
This is on a newly installed FC4 system. I'm also behind a proxy server. The proxy server needs authentication.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I executed the following command as root:
1. export http_proxy=http://username:email@example.com:3128/ (not actual user/password/proxy names)
2. yum update
Actual Results: Sometimes yum runs successfully but most of the time it generates a traceback. The error is always an IndexError: list index out of range.
Expected Results: yum should run successfully without generating a traceback.
Traceback (most recent call last):
File "/usr/bin/yum", line 15, in ?
File "/usr/share/yum-cli/yummain.py", line 72, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 419, in doCommands
File "/usr/share/yum-cli/cli.py", line 877, in updatePkgs
File "/usr/share/yum-cli/cli.py", line 78, in doRepoSetup
File "__init__.py", line 241, in doSackSetup
File "repos.py", line 281, in populateSack
File "repos.py", line 726, in getPrimaryXML
File "repos.py", line 713, in _retrieveMD
File "repos.py", line 605, in get
File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 414, in urlgrab
return self._mirror_try(func, url, kw)
File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 392, in _mirror_try
mirrorchoice = self._get_mirror(gr)
File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 290, in _get_mirror
IndexError: list index out of range
[root@tungsten tmp]# rpm -q yum
[root@tungsten tmp]# rpm -q sqlite
[root@tungsten tmp]# rpm -q python
[root@tungsten tmp]# rpm -q python-sqlite
[root@tungsten tmp]# uname -a
Linux tungsten.hq.ntsp.nec.co.jp 2.6.12-1.1390_FC4 #1 Tue Jul 5 19:58:55 EDT 2005 i686 i686 i386 GNU/Linux
When I run yum update, I have encountered the same phenomenon above.
I re-install yum package, but in vain.
In adition, my versions of yum and python packages are the same above. In
spite I don't use a proxy server, I encountered the same phenomenon above.
Please tell me how to solve this problem.
Thanks for the bug report. This particular bug has already been reported
into our bug tracking system, but please feel free to report any further
bugs you find.
*** This bug has been marked as a duplicate of 157666 ***
Thank you for your reply above. According to your direction, I will
mention this phenomenon above in detail.
I use the dialup-rooter and PHS card in my circumstance. When I run
yum update command, in first its command run smoothly but sooner or later
(about ten minutes later)it faiied to run showing error messages above.
I guess this phenominon occur when yum update commnand refers to other
Will you show me how to solve this problem as soon as possible?