Update on Ubuntu 12.10 server failing (Not Found)

July 19, 2014 34.7k views

I'm trying to update the packages for my Ubuntu 12.10 server, but I'm getting 404 errors at various DigitalOcean mirrors.

ethan@cloud:~$ sudo apt-get update
Ign http://security.ubuntu.com quantal-security Release.gpg
Ign http://mirrors.digitalocean.com quantal Release.gpg
Ign http://security.ubuntu.com quantal-security Release
Ign http://mirrors.digitalocean.com quantal-updates Release.gpg
Ign http://security.ubuntu.com quantal-security/main amd64 Packages/DiffIndex
Ign http://mirrors.digitalocean.com quantal Release
Ign http://mirrors.digitalocean.com quantal-updates Release
Ign http://mirrors.digitalocean.com quantal/main amd64 Packages/DiffIndex
Ign http://mirrors.digitalocean.com quantal/universe amd64 Packages/DiffIndex
Ign http://mirrors.digitalocean.com quantal-updates/main amd64 Packages/DiffIndex
Ign http://mirrors.digitalocean.com quantal-updates/universe amd64 Packages/DiffIndex
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Ign http://security.ubuntu.com quantal-security/main Translation-en
Err http://security.ubuntu.com quantal-security/main amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Ign http://mirrors.digitalocean.com quantal/main Translation-en_US
Ign http://mirrors.digitalocean.com quantal/main Translation-en
Ign http://mirrors.digitalocean.com quantal/universe Translation-en_US
Ign http://mirrors.digitalocean.com quantal/universe Translation-en
Ign http://mirrors.digitalocean.com quantal-updates/main Translation-en_US
Ign http://mirrors.digitalocean.com quantal-updates/main Translation-en
Ign http://mirrors.digitalocean.com quantal-updates/universe Translation-en_US
Ign http://mirrors.digitalocean.com quantal-updates/universe Translation-en
Err http://mirrors.digitalocean.com quantal/main amd64 Packages
  404  Not Found
Err http://mirrors.digitalocean.com quantal/universe amd64 Packages
  404  Not Found
Err http://mirrors.digitalocean.com quantal-updates/main amd64 Packages
  404  Not Found
Err http://mirrors.digitalocean.com quantal-updates/universe amd64 Packages
  404  Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal/universe/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal-updates/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal-updates/universe/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
#sources.list

deb http://mirrors.digitalocean.com/ubuntu quantal main
deb http://mirrors.digitalocean.com/ubuntu quantal-updates main
deb http://security.ubuntu.com/ubuntu quantal-security main
deb http://mirrors.digitalocean.com/ubuntu quantal universe
deb http://mirrors.digitalocean.com/ubuntu quantal-updates universe

How do I fix this issue? Do I need different sources, or do I need to uninstall packages?

2 comments
  • I just ran into a similar problem. The Saucy mirror still exists on mirrors.digitalocean.com, but the Quantal mirror does not, and I need to upgrade, and I need to install the Quantal update-manager packages so I can perform the upgrade.

    If you pull up mirrors.digitalocean.com in a browser, you'll see that the quantal mirrors are apparently gone. Now, Ubuntu no longer supports Quantal and I understand (and appreciate!) that the mirror was provided to us by the good graces of the people at DO, but I wish I'd had some advance notice that they were pulling the mirror. I still have two droplets I need to update to Saucy, and then to Trusty from there.

    I have a ticket open and am awaiting a response.

  • Any progress in regards to this as I am in the same situation :(

7 Answers

Fixed it by changing references to quantal to precise in sources.list.

Ubuntu 12.10 has reached End Of Life and is no longer supported. Ubuntu has remove it from their official mirrors. We've set up a repository for it at: mirrors.digitalocean.com/ubuntu-old

Though you are strongly encouraged to upgrade to a more recent release. Security updates are no longer provided for any packages in 12.10. We are providing that repository as a convenience and temporary work around for those who haven't upgraded yet.

i'm getting this issue, but with 14.04.1 LTS. how do i solve it?

Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main linux-libc-dev amd64 3.13.0-32.57
  404  Not Found
Err http://security.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev amd64 3.13.0-32.57
  404  Not Found [IP: 91.189.92.201 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-32.57_amd64.deb  404  Not Found [IP: 91.189.92.201 80]
  • I have the same problem on 64 bit 3.13.0-32-generic #57-Ubuntu

    Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main linux-libc-dev amd64 3.13.0-32.57
      404  Not Found
    Err http://security.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev amd64 3.13.0-32.57
      404  Not Found [IP: 91.189.88.153 80]
    E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-32.57_amd64.deb  404  Not Found [IP: 91.189.88.153 80]
    

    with sources.list:

    deb http://mirrors.digitalocean.com/ubuntu/ trusty main restricted
    deb http://mirrors.digitalocean.com/ubuntu/ trusty-updates main restricted
    deb http://mirrors.digitalocean.com/ubuntu/ trusty universe
    deb http://mirrors.digitalocean.com/ubuntu/ trusty-updates universe
    deb http://mirrors.digitalocean.com/ubuntu/ trusty multiverse
    deb http://mirrors.digitalocean.com/ubuntu/ trusty-updates multiverse
    deb http://mirrors.digitalocean.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu trusty-security main restricted
    deb http://security.ubuntu.com/ubuntu trusty-security universe
    deb http://security.ubuntu.com/ubuntu trusty-security multiverse
    
  • This is actually a different error than the original poster. Here it's just individual packages that are not found. Most likely this means that there has been a new update. Run sudo apt-get update and the re-attempt to install the package.

  • I was just about to answer my own question. Yes. asb is correct. apt-get update did the trick. Sorry for asking on the wrong thread!

And now I've closed the ticket because I have discovered that we both just had the wrong URL for the DO repository mirrors. Derpy derp derp derp. :)

http://mirrors.digitalocean.com/ubuntu-old/dists/

they're all there.

Hey, It really works for me....thx.

Have another answer? Share your knowledge.