Bug 501851 - yum mirrorlist download failed
Summary: yum mirrorlist download failed
Keywords:
Status: CLOSED DUPLICATE of bug 484491
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 10
Hardware: i386
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-21 02:49 UTC by lavender0261
Modified: 2014-01-21 23:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-09 15:40:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
file 'metalink' created by urlgrabber command (16.08 KB, text/plain)
2009-07-09 14:27 UTC, Leon Flaks
no flags Details

Description lavender0261 2009-05-21 02:49:49 UTC
Description of problem:
When I run #yum update or # yum install as root, a problem happens.

Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386 error was
[Errno 4] IOError: <urlopen error (-2, '\xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Comment 1 James Antill 2009-05-21 04:43:29 UTC
What do you get when you go to that URL in firefox etc?

Does "yum clean all" help?

Comment 2 lavender0261 2009-05-22 02:46:05 UTC
(In reply to comment #1)
> What do you get when you go to that URL in firefox etc?
> 
> Does "yum clean all" help?  

I tried to run "yum clean all" ,but the problem still happens.
When I go to that URL,it shows:
# repo = fedora-10 arch = i386 country = RU country = JP country = GE country = HK country = VN country = MY country = CY country = SG country = TW country = TR country = TH country = IN 
http://ftp.riken.jp/Linux/fedora/releases/10/Everything/i386/os/
http://mirror.in.th/osarchive/fedora/releases/10/Everything/i386/os/
http://free.nchc.org.tw/fedora/linux/releases/10/Everything/i386/os/
http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/10/Everything/i386/os/
ftp://ftp.chu.edu.tw/linux/Fedora/linux/releases/10/Everything/i386/os/
http://mirror.yandex.ru/fedora/linux/releases/10/Everything/i386/os/
http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/10/Everything/i386/os/
http://ftp.linux.org.tr/fedora/releases/10/Everything/i386/os/
http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/10/Everything/i386/os/
http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/10/Everything/i386/os/
http://mirror1.ku.ac.th/fedora/releases/10/Everything/i386/os/
http://mirror.nus.edu.sg/fedora/releases/10/Everything/i386/os/
http://ftp.nchu.edu.tw/Linux/fedora/releases/10/Everything/i386/os/
ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/releases/10/Everything/i386/os/
http://opensource.nchc.org.tw/fedora/linux/releases/10/Everything/i386/os/
http://ftp.rhd.ru/pub/fedora/linux/releases/10/Everything/i386/os/
http://ftp.kddilabs.jp/Linux/packages/fedora/releases/10/Everything/i386/os/
http://ftp.twaren.net/Linux/Fedora/linux/releases/10/Everything/i386/os/
http://fedora.mirrors.firstnetcom.com/fedora/releases/10/Everything/i386/os/
http://ftp.chg.ru/pub/Linux/fedora/linux/releases/10/Everything/i386/os/
http://mirrors.cytanet.com.cy/linux/fedora/linux/releases/10/Everything/i386/os/
http://ftp.itu.edu.tr/Mirror/Fedora/linux/releases/10/Everything/i386/os/
http://ftp.mirror.tw/pub/fedora/linux/releases/10/Everything/i386/os/
http://ftp.cs.pu.edu.tw/Linux/Fedora/releases/10/Everything/i386/os/
ftp://ftp.cs.hacettepe.edu.tr/pub/mirrors/fedora/linux/releases/10/Everything/i386/os/

Comment 3 seth vidal 2009-05-22 12:35:42 UTC
Do you have a proxy of some kind set up in firefox that's not setup for the rest of the apps?

Comment 4 lavender0261 2009-05-23 04:29:24 UTC
(In reply to comment #3)
> Do you have a proxy of some kind set up in firefox that's not setup for the
> rest of the apps?  

 I use opera, not firefox which can't resolv domain. And I didn't have any proxy set up in firefox or opera.

Comment 5 seth vidal 2009-05-26 15:04:30 UTC
can you run this command:

urlgrabber $thaturl

where you replace $thaturl with the url in question

and post the output?


thanks

Comment 6 lavender0261 2009-05-28 02:30:55 UTC
[root@localhost rpm-gpg]# urlgrabber http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386
[1] 4094
[root@localhost rpm-gpg]# Traceback (most recent call last):
  File "/usr/bin/urlgrabber", line 124, in <module>
    main()
  File "/usr/bin/urlgrabber", line 120, in main
    filename = urlgrab(url,filename=file,**kwargs)
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 603, in urlgrab
    return default_grabber.urlgrab(url, filename, **kwargs)
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 933, in urlgrab
    return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 851, in _retry
    r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 919, in retryfunc
    fo = URLGrabberFileObject(url, filename, opts)
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 1007, in __init__
    self._do_open()
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 1086, in _do_open
    fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 1215, in _make_request
    raise URLGrabError(4, _('IOError: %s') % (e, ))
urlgrabber.grabber.URLGrabError: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>

[1]+  Exit 1                  urlgrabber http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10

Comment 7 seth vidal 2009-06-04 18:37:52 UTC
if you run:
host mirrors.fedoraproject.org

what do you get back?

Comment 8 Leon Flaks 2009-06-11 18:03:17 UTC
Similar problem here on a newly installed Fedora 11. I have no problems on Fedora 10 on the same network.
I have proxy set both in yum and firefox. 
Output of 'yum update' :
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again

If I put this url into firefox - seems to work - it offers me to open metalink download and asks what to do - open with KGet or save file.

If I put any real mirror, everything works. Once I fix fedora repo, it starts to complain about fedora-updates in a similar way.

If I run 'host mirrors.fedoraproject.org', I get :

[root@system1# host mirrors.fedoraproject.org
mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org.
wildcard.fedoraproject.org has address 209.132.176.120
wildcard.fedoraproject.org has address 66.35.62.166
wildcard.fedoraproject.org has address 80.239.156.215
wildcard.fedoraproject.org has address 152.46.7.222

I also tried to run urlgrabber command:
urlgrabber http://mirrors.fedoraproject.org/metalink?repo=fedora-11&arch=i386
I see the following:
[2] 620
metalink                                                  |   53 B     00:00
file written to metalink

and I don't get the prompt back. Hitting ENTER, gives me the line:
[2]-  Done          urlgrabber rs.fedoraproject.org/metalink?repo=fedora-11
and the prompt.

the file 'metalink' is created with the this:
# either path=, or repo= and arch= must be specified

Thanks,
Leon

Comment 9 seth vidal 2009-07-08 19:10:24 UTC
run this command

urlgrabber 'http://mirrors.fedoraproject.org/metalink?repo=fedora-11&arch=i386'


the quotes matter.

Comment 10 Leon Flaks 2009-07-09 14:06:51 UTC
(In reply to comment #9)
> run this command
> 
> urlgrabber 'http://mirrors.fedoraproject.org/metalink?repo=fedora-11&arch=i386'
> 
> 
> the quotes matter.  

Here it is:

# urlgrabber 'http://mirrors.fedoraproject.org/metalink?repo=fedora-11&arch=i386'
metalink                                                                                                                                                 |  16 kB     00:00
file written to metalink

And I've got the prompt back. The file 'metalink' is written to the directory that I ran the command from.

Looks good to me.

Comment 11 seth vidal 2009-07-09 14:17:05 UTC
what's in the file?

Comment 12 Leon Flaks 2009-07-09 14:27:09 UTC
Created attachment 351078 [details]
file 'metalink' created by urlgrabber command

Comment 13 seth vidal 2009-07-09 14:38:21 UTC
okay - everything looks good. Are you still seeing the same problem?

Comment 14 Leon Flaks 2009-07-09 14:50:21 UTC
Unfortunately, yes. If I uncomment mirrorlist line in fedora.repo, I have this:

yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again

I just noticed something. You asked met to do urlgrabber with http://..., but my fedora.repo file has https://...  If I change https to http everything works as expected.
If I try to do urlgrabber with https, it fails with 'connection  refused' error.

I see the same https in fedora-updates.repo

Fedora 10 has http (not https)

Hope that helps,

Leon

Comment 15 seth vidal 2009-07-09 15:40:34 UTC

*** This bug has been marked as a duplicate of bug 484491 ***


Note You need to log in before you can comment on or make changes to this bug.