Luckily the creators of Ubuntu planned ahead for this kind of thing and run a separate SSH Deamon (mine was port 1022) so I could connect to that using
ssh [email protected] -p 1022. Now gthat you're connected, you will notice everything is locked down. The entire file system will be locked down incluing apptitude, and you can't even resume using
dpkg --configure -a or
aptitude t -f dist-upgrade.
There is a screen instance running as the root user on th machine, which you can easily reconnect to using
screen -d -r. Once you are connected to this, you can easily resume wherever you were disconnected from. If you aren't logged in as root, which is good practice when you need to
sudo su to get to the root user, or
su root then enter the root password if you don't have sudo permissions. Thankfully that's all I needed to do to resume my upgrade.