How To Fix apt-get Errors on Old Ubuntu Hosts
erics, 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 security.ubuntu.com
and archive.ubuntu.com
to old-releases.ubuntu.com
, using the sed command:
cp /etc/apt/sources.list /etc/apt/sources.list.orig
sed -i.bak -r ‘s/(archive|security).ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list
apt-get update
Then you may proceed to install the missing packages…
As always, YMMV!
Leave Your Comment
All fields marked with "*" are required.