Error cannot retrieve repository metadata repomd.xml for repository

You need to edit two of your repository files: /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo. Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist. This should be done for both the above files.

Now edit your /etc/hosts file and append the following to it’s contents:

80.239.156.215          mirrors.fedoraproject.org
213.129.242.84          mirrors.rpmfusion.org

Done.

4 Responses

  1. I tried this and it had absolutely no effect; I get the exact same error.

  2. J’ai exactement le même probleme, j’ai essayé de modifier les fichier etc / yum.repos.d / fedora.repo et / etc / yum.repos.d Fedora-updates.repo, mais on m’affiche
    “permission non autorisé”
    Peut on m’eclairer pour acceder à la requete ?

  3. Try this:
    cat /etc/profile.d/proxy.sh
    export http_proxy=http://domain.com:80
    export https_proxy=http://domain.com:80
    export ftp_proxy=http://domain.com:80
    export HTTP_PROXY=http://domain.com:80
    export HTTPs_PROXY=http://domain.com:80
    export FTP_PROXY=http://domain.com:80
    also add to vim /etc/yum.conf
    proxy=http://domain.com:80

Leave a Reply