Wednesday, January 7, 2015

Ubuntu update error "404 Not Found [IP: 91.189.91.15 80]"

A couple days ago, I's trying to upgrade my Ubuntu 12.10 server and got this annoying error:

$ sudo apt-get update

...
404  Not Found [IP: 91.189.91.15 80]
...

What's up man?

It turned out that Ubuntu 12.10 reached its End-Of-Life (totally forgot) and its repositories were moved to another server. So, all I have to do is change the archive.ubuntu.com and security.ubuntu.com package repository URLs to old-releases.ubuntu.com:

$ sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Update again and enjoy:

$ sudo apt-get update



Reference: https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/