Updating an Debian/Ubuntu OS that is no longer supported
In our example, we have Debian Squeeze (6.0) and it's been unsupported since Feb 2016. We can no longer install nor update the packages until you point it to another source...the archives.
So, in /etc/apt/sources.list, add you will see:
1deb http://ftp.us.debian.org/debian/ squeeze main
2deb-src http://ftp.us.debian.org/debian/ squeeze main
Replace it with:
1deb http://archive.debian.org/debian squeeze main
2deb http://archive.debian.org/debian squeeze-lts main
and you can now access 'apt-get' or 'dpkg' as before (but limited to what's in the archive).
You may also need to add this to /etc/apt/apt.conf (create if it doesn't exist):
1Acquire::Check-Valid-Until false;
See details in https://wiki.debian.org/DebianSqueeze