I was using Ubuntu 22.04.4, I installed an app/program that didn't work but wouldn't uninstall. I ran a purge and auto remove command and when the computer rebooted, I knew I borked it! I get a terminal window with the following: Ubuntu 22.04.4 LTS gary-260-a020 ttyl and next line: gary-260-a020 login:_. gary-260-a020 is my personal computer, an HP.
I installed Ubuntu 24.04 alongside 22.04.4 by dumb luck. When I tried to start Ubuntu 22.04.4 from GRUB I get the same two lines. I have tried various login/user names, nothing works, not root or my name.
Is there anything I can do. 24.04 is working fine, but there files on 22.04.4 I'd like to get back.
sudo apt install ubuntu-desktop
could fix that in case you want to boot to a desktop environment on 22.04 again. About the non-working username / password in the TTY, your actual username might not match what you see when logging in through your desktop manager, but that can also be fixed by running the command from a root shell obtained by booting into GRUB, choosing "advanced options for Ubuntu" and dropping to a root shell from the recovery mode.