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!