Ssh – How to safely resume an aptitude dist-upgrade after SSH timeout

aptaptitudessh

I started aptitude dist-upgrade over SSH on my local network. At some point the session timed out but the upgrade was not finished (it was left at one of those accept software agreement screens– I forget which one so I don't know how far into the upgrade I got, but the point is that right now it is idle waiting for me to accept).

I SSH'ed back into my server and see that the aptitude process is still running. What is the safest way to proceed? I did not use screen so is there any way to resume the running aptitude process? If not, what is the safest way to kill and restart it?

Best Answer

Just kill it with kill and run it again. It won't download anything already downloaded, and it will finish the upgrade. If it can't continue because your system is in a broken state, apt-get -f install should fix it.

Related Question