Ubuntu apt-get unable to fetch packages

This is linked to using a non LTS version of ubuntu called an End of life version. As those have discontinued support. You can check if your ubuntu lies in the end of life version on this link – https://wiki.ubuntu.com/Releases

The simplest solution is to do the following two steps:

1- Backup your sources list -> sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2- Open the sources file “/etc/apt/sources.list” Rename all the instances of us.archive or archivein http://us.archive.ubuntu.com/ubuntu/ to

http://old-releases.ubuntu.com/ubuntu/

Also do the same for the http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages

3- Run sudo apt-get update after doing the above.

That should fix the issue.

Warning: Please update your ubuntu to an LTS version as soon as possible otherwise you won’t be getting the latest security patches. This is definitely not a solution that you would deploy on production machines.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.