Ubuntu 22.04 is stuck on startup
Linux #linux #ubuntuSolution
- Start ubuntu in recovery mode

- Remove all nvidia graphics drivers using following commands
sudo apt purge ~nnvidia
sudo apt autoremove
sudo apt clean
- Reboot again
Now if you are facing resolution problem i.e. there is not option to change screen resolution, run inxi -G on command line
and check the output, if you see some device drivers with N/A, then check /etc/default/grub file and look for line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset". If nomodeset is there the remove it and update grub using following command
and restart.
sudo update-grub
Optionally, you can also set resolution for
gfxtermin grub configGRUB_GFXMODE=1920x1080, run above command after the update.
More on gfxmode here