How To Fix apt-get Errors on Old Ubuntu Hosts

Published Date Author: , Posted August 3rd, 2016 at 8:20:04am

As usual, whenever I have to do sysadmin on a Ubuntu-based OS, I find problems. When will people realize what a horrible OS it is?

In this case, packages needed were unavailable.

For apt-get to function, the file /etc/apt/sources.list must be edited to change all URLs from and to, using the sed command:

cp /etc/apt/sources.list /etc/apt/sources.list.orig
sed -i.bak -r ‘s/(archive|security)’ /etc/apt/sources.list
apt-get update

Then you may proceed to install the missing packages…

As always, YMMV!

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.