I have a dualboot setup (Windows11 and Ubuntu24.04). While trying to setup CUDA for a project, I rebooted my laptop using "sudo reboot".
The machine seemed to be stuck rebooting as it was unable to kill some task. This went on for a couple of minutes before I decided to forcefully turn it off. When I tried to boot it to Ubuntu again, I noticed I was unable to login or interact in any way.
I tried booting into secure mode but was again, unable to interact with the recovery menu. I can interact with the grub menu and my Windows OS just fine though.
How do I fix this?
This is what I was running before rebooting:
sudo dnf install cuda-toolkit
sudo dnf install nvidia-gds
sudo reboot
EDIT: I decided to select another recover mode with an older kernel version and was able to manoeuvre around this menu. I hit the "Drop to root shell prompt" option and ran the commands
sudo apt-get update --fix-missing
sudo apt-get upgrade -y
sudo apt-get install -y xserver-xorg-input-all
Which I had seen in this answer here before rebooting again but this didn't help.