Failed to fetch upgrade to 19.04 [duplicate]

Solution 1:

This fixed it for me:

sudo apt-get update --fix-missing; sudo dpkg --configure -a; sudo apt-get install -f; sudo apt-get update; sudo apt-get upgrade;
sudo do-release-upgrade

See https://ubuntuforums.org/showthread.php?t=2391552

If it doesnt't try

sudo mv /etc/apt/sources.list ~/
sudo touch /etc/apt/sources.list
software-properties-gtk

Check the first two boxes. You may also want to change the server. This recreates the source list.

See How do I restore the default repositories?