I have a problem where I can't log into the system.
It freezes when I enter the right details.
I can't get to a tty or terminal either.
When I press Ctrl+Alt+F1 a blank screen shows up, and if I press any key it returns me to the log in screen.
Ctrl+Alt+Fx (where x is any number) also doesn't work.
Alt and T during bootup let me stay in the bootup code but again when I type anything it sends me to the login screen.
I thought I installed Ubuntu 23.04 when I first (recently) installed it. But how do I check this?
I realise it might have updated (I was running updates before it stopped working) so it could be 24.04. Which would make sense cause when I tried to install 24.04 it didn't work.
Systemd-based distros (though this doesn't apply only to systemd-based distros) store much information about the current release in
/etc/os-release
(which is one of the files parsed bylsb_release
), optionally including (Ubuntu does), among others, for example, aVERSION_ID
entry:and a
PRETTY_NAME
entry:So you may:
sudo mount /dev/sdXY /mnt
, replacing/dev/sdXY
with the right block device for your root partition as listed by, say,lsblk
)VERSION_ID
entry, or to print thePRETTY_NAME
entryNote that on Ubuntu 24.04.1 at least the
PRETTY_NAME
entry contains the specific point release version ("24.04.1", unlikeVERSION_ID
, which just contains "24.04"), so that's another reason to preferPRETTY_NAME
overVERSION_ID
when not parsing the file to script stuff.