I have had Ubuntu 20.04 running solidly for 12 months and I recently tried to cleanup some (what I thought were) unwanted services. From Stacer I changed the Console getty service settings (can't recall if I started or stopped or disabled...?) and now I get the following behavior:
On boot, the Gnome graphical login screen appears for about 2 seconds, then the text based tty console appears. I can login to the console but I can't work out how to get back to Gnome.
I have successfully done this: sudo systemctl set-default graphical.target
and after reboot, checking: systemctl get-default
returns graphical.target
I've looked through /etc/systemd/system
and can see that console.getty.service
link has a modified timestamp of around when I started messing with things...
I don't know linux well enough to navigate the directories and debug this (is it a systemd thing?)
From a console, entering the following seems to do nothing:
sudo systemctl start gdm3.service
I can switch between TTY sessions using ALT + F2 etc which is fine but trying to switch to Gnome using ALT + F7 just results in /dev/nvme0n1p2: clean, x/y files, x/y blocks
and it hangs there...
Just tried this: sudo apt-get install --reinstall ubuntu-gnome-desktop
but same behavour.
Executing this: sudo systemctl isolate graphical
looks promising as it displays the motherboard logo and Ubuntu logo and a spinny wheel....but the wheel just keeps spinning forever and nothing else happens
How do I get back to the Gnome graphical desktop please?