To upgrade - first make sure that /etc/update-manager/release-upgrades,
has the following entry:
Prompt=normal
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
After upgrading to 19.04 - you may need to manually download
and install:
libpython3.7-minimal_3.7.3-2_amd64.deblibpython3.7-stdlib_3.7.3-2ubuntu0.1_amd64.deb
** Before you log out **:
sudo apt install xserver-xorg-input-all
If you don't do the above here is how to break back in and fix
Ubuntu 19.04 without any mouse or keyboard response:
Shut it down and restart.
At Ubuntu splash screen type "e".
Add the word "single" after quiet on the kernel string (before splash).
Log in.
If you are trapped in emergency mode at the boot prompt, try editing your fstab.
First back up the old version: cp /etc/fstab /etc/old_fstab
Remove all entries in the new file except for / and swap. vi /etc/fstab
You need to install further packages, enter:
sudo systemctl set-default multi-user.target
Reboot. This will cause Ubuntu to boot with a shell (no graphics loaded).
I'm fairly sure the key fix for me was:
sudo apt install xserver-xorg-input-all
You may want to also install a few others for instance if you initially
chose LightDM and thereafter want to try gdm3, or install a new greeter
I recommend you use gdm3 as the default.
When done, put graphical mode back on:
sudo systemctl set-default graphical.target
Done! Reboot, hopefully mouse and keyboard are now working.
Don't forget to swap your fstab back.