Fix apt on unsupported Ubuntu 17.04 (Zesty)
By adding some repositories to your Sources List located at /etc/apt/sources.list you can fix apt.
Date Added : Sat Jan 20 2018 20:34:32 GMT+0000 (Coordinated Universal Time)
Last Updated : Sat Jan 20 2018 20:34:32 GMT+0000 (Coordinated Universal Time)
I woke up one morning and my package manager wasn't downloading stuff. I just assumed it was a temporary thing with Ubuntu. I was getting errors like the one below even the day after.. i realized there was something very wrong..
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/source/Sources 404 Not Found
Turns out Ubuntu 17.04 has met it's end of life. Which I hadn't expected at all. You can read more about that on Ubuntu's website here https://www.ubuntu.com/info/release-end-of-life.
I figured it out and now i want to share!
1. Start by opening the sources list.
nano /etc/apt/sources.list
2. Add the following to the end of the file.
deb http://old-releases.ubuntu.com/ubuntu/ zesty main deb-src http://old-releases.ubuntu.com/ubuntu/ zesty main deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates main deb http://old-releases.ubuntu.com/ubuntu/ zesty universe deb-src http://old-releases.ubuntu.com/ubuntu/ zesty universe deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates universe deb http://old-releases.ubuntu.com/ubuntu zesty-security main deb-src http://old-releases.ubuntu.com/ubuntu zesty-security main deb http://old-releases.ubuntu.com/ubuntu zesty-security universe deb-src http://old-releases.ubuntu.com/ubuntu zesty-security universe
3. Update the package lists.
apt update
4. Enjoy downloading packages once more!