How to Fix apt-get Failed to Fetch error in unsupported Ubuntu releases

Updated on September 2, 2017

For one of my project, I need to install an older version of Ubuntu (11.10 oneiric release). But apt-get failed (install) or apt-get update was no longer working and failed with an error message  “Failed to fetch” and “404 not found”.  Below are the errors:

$ sudo apt-get update
W: Failed to fetch  404  Not Found [IP: 80]
W: Failed to fetch  404  Not Found [IP: 80]

And the errors from apt-get upgrade resulted in “403 forbidden”.

Well, the errors were expected, because Ubuntu 11.10 is an unsupported release due to which apt-get is not able to find the packages under and So I had to find an alternative solution (I mean, I had to find an URL that contains packages for unsupported releases) and fortunately Ubuntu has made it available in an alternative URL.

apt-get failed – How to make it work on an unsupported Ubuntu OS?

apt-get failed to fetch error

Ubuntu has a repository for older versions and it’s available in So we’ll quickly make apt-get to look for the packages under old releases repository. To do that, edit /etc/apt/sources.list.

# vim /etc/apt/sources.list

Look for the URLs and and replace both with The new sources.list should look like the one shown below:

deb oneiric main
 deb-src oneiric main
 deb oneiric-updates main
 deb-src oneiric-updates main
 deb oneiric universe
 deb-src oneiric universe
 deb oneiric-updates universe
 deb-src oneiric-updates universe
 deb oneiric-security main
 deb-src oneiric-security main
 deb oneiric-security universe
 deb-src oneiric-security universe

That’s it!

Now you should be able to perform apt-get update or apt-get upgrade.

$ sudo apt-get update
$ sudo apt-get upgrade

Note: If you are still getting 403 or 404 errors, then make sure the URLs are entered corrected in sources.list file and try again.

Was this article helpful?

Related Articles

Leave a Comment