Fixed it. Put in a few commands that helped give wordpress the permissions it needed to auto update:
sudo usermod -aG www-data $USER
sudo chown -R www-data:www-data /var/www
sudo chmod -R 774 /var/www
This problem has been plaguing me for months. I feel like a huge weight has been lifted off my chest now haha.