yum update failure: Cannot retrieve repository metadata

Sometimes, using “yum update”, the process fails with an error message similar to::

    Error: Cannot retrieve repository metadata (repomd.xml) for repository:
    rpmfusion-free-updates. Please verify its path and try again

You could hack your yum repository in /etc/yum.repo.d but the best solution is simply to use the yum option “–disablerep
o”:

sudo yum --disablerepo=rpmfusion-free-updates --disablerepo=rpmfusion-nonfree-updates --disablerepo=rpmfusion-free upd
ate
Please follow and like us:
This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.