"Couldn't resolve host" when installing/updating yum packages

33,025

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:
33,025

Related videos on Youtube

M0εiπ
Author by

M0εiπ

Updated on September 18, 2022

Comments

  • M0εiπ
    M0εiπ almost 2 years

    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?

  • M0εiπ
    M0εiπ almost 12 years
    would you please tell me how to remove or change it?
  • M0εiπ
    M0εiπ almost 12 years
    removing some repositories helped me, I am just using fedora.repo and fedora-updates.repo , it's working well now.
  • George M
    George M almost 12 years
    @MoeinFatehi You can accept the answer, which gives you reputation so you can upvote in the future.
  • leonheess
    leonheess about 3 years
    mirrorlist is no called metalink