If you're lucky, you might just have a crashed/detached screen
(terminal manager) instance. This command should reattach (reconnect) to it:
$ sudo screen -D -r
If that doesn't get you started again (i.e., it says "There is no screen to be detached."), here are some more steps to try:
First, check for/fix broken dependencies (e.g., updates that didn't fully download):
$ sudo apt-get install -f
If it indicates that there are no broken packages, and nothing to download, then try this command. It tells the package manager to fix/reconfigure the existing, unpacked-but-not-yet-configured packages:
$ sudo dpkg --configure -a
You can then try the release upgrade again, but it may already be finished at this point. This last command is actually how I've restarted most broken upgrades which aren't fixed by reattaching to the screen
session (see the first suggestion).
If it fails here, I'm not sure. You may want to delete all the already- downloaded packages (they should be stored in /var/cache/apt/archives
), do
$ sudo apt-get clean
That will clean up the packages but if you're still stuck in some weird state, I'm not sure what else to suggest.
$ sudo apt-get autoremove -y
That will remove any now obsolete packages.
Of course, before you do anything you should back up any important contents of your /home/dave
directory (or whatever your $HOME
directory is).