Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Whenever I try to install or update a package using yum, after it updates its DB these messages are shown:

Loaded plugins: langpacks, presto, refresh-packagekit, tidy-cache google64

http://download.fedora.redhat.com/pub/epel/6/i386/repodata/repomd.xml:
[Errno 14] curl#6 - "Couldn't resolve host" Trying other mirror. 

http://download.fedora.redhat.com/pub/epel/6/i386/repodata/repomd.xml:
[Errno 14] curl#6 - "Couldn't resolve host" Trying other mirror.

Error: failure: repodata/repomd.xml from mypck: [Errno 256] No more mirrors to try.

I'm running Linux 3.4.3. What could be causing this problem? How do I fix it?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

The mirrorlist contains an invalid entry. On my Fedora installation, the error is simply informative as it goes to the next entry in the mirrorlist and completes successfully.

You can remove the error by (as root or using sudo) editing the file /etc/yum.repos.d/fedora-updates.repo. You will see the following lines:

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/
 $releasever/$asearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f
 $releasever&arch=$basearch

Uncomment the baseurl line and comment out the mirrorlist line. This removes the option of getting updates from the maintained list of mirrors.

share|improve this answer
    
sorry , I can't vote up because I don't have enough reputation.thank you –  M0εiπ Jun 29 '12 at 18:56
    
removing some repositories helped me, I am just using fedora.repo and fedora-updates.repo , it's working well now. –  M0εiπ Jun 29 '12 at 19:02
1  
@MoeinFatehi You can accept the answer, which gives you reputation so you can upvote in the future. –  uther Jun 29 '12 at 19:09

Seems to me that the host just does not exist:

$ host download.fedora.redhat.com
Host download.fedora.redhat.com not found: 3(NXDOMAIN)

So, either

  1. wait until the host becomes available again
  2. find a replacement host and update that to yum sources
  3. remove the host from the sources

Note that

$ host download.fedoraproject.org
download.fedoraproject.org is an alias for wildcard.fedoraproject.org.
wildcard.fedoraproject.org has address 85.236.55.6
wildcard.fedoraproject.org has address 80.239.156.215
wildcard.fedoraproject.org has address 209.132.181.16
wildcard.fedoraproject.org has IPv6 address 2001:4178:2:1269::fed2
wildcard.fedoraproject.org has IPv6 address 2610:28:3090:3001:dead:beef:cafe:fed4

which may be what you are looking for.

share|improve this answer
    
would you please tell me how to remove or change it? –  M0εiπ Jun 29 '12 at 15:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.