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

sudo yum --disablerepo=rpmfusion-free-updates --disablerepo=rpmfusion-nonfree-updates --disablerepo=rpmfusion-free upd
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.