Home > Web Development > Yum 404 Errors

Yum 404 Errors

June 16th, 2010

Today, I was attempting to install a package using Yum on Fedora 12 Linux. I used a command like this:

yum install mysql

Every mirror that Yum tried to download the package from returned a 404 error. Here’s what some of the output looked like:

Setting up and reading Presto delta metadata
http://linux.nssl.noaa.gov/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz: [Errno 14] HTTP Error 404 : http://linux.nssl.noaa.gov/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz
Trying other mirror.
http://mirror.pnl.gov/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz: [Errno 14] HTTP Error 404 : http://mirror.pnl.gov/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz
Trying other mirror.
http://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz: [Errno 14] HTTP Error 404 : http://chi-10g-1-mirror.fastsoft.net/pub/linux/fedora/linux/updates/12/x86_64/repodata/xxxx-prestodelta.xml.gz
Trying other mirror.

Quickly, my screen filled with 404 errors, each one followed by the text Trying other mirror. I tried to ping a handful of the mirrors in the list. Each mirror returned packets, no problem! After restarting various services and checking various configuration files, I found a simple solution to my problem. It was so simple, I slapped my forehead in bewilderment! Here it is:

yum clean all

Yes, it was that simple.

Nate Smith Web Development , , , , , , , ,

  1. Pete
    | #1

    Thanks! That worked. So simple, I was kicking my self in the end…

  2. sanzoh
    | #2

    but why?
    I use fedora 18 beta, and today is 12/22 ‘12. I also have this same problem after I

    yum localinstall http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-branched.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-branched.noarch.rpm

    strange enough.

  3. sanzoh
    | #3

    yum clean rpmdb // not work
    yum clean metadata // works

  1. No trackbacks yet.