I think i messed up my Nvidia GPU drivers after apt-get update. Is there any command to reinstall Nvidia GPU drivers on Ubuntu Linux desktop from command line as GUI not working on my Dell XPS 17" laptop. Please give help as I don’t want to reinstall operating system again.
- Boot Ubuntu into a single user mode/recovery mode by following https://wiki.ubuntu.com/RecoveryMode
- Search for Nvidia driver, run:
apt search nvidia-driver
- Reinstall Nvidia driver (say version 455):
sudo apt reinstall nvidia-driver-455
- Reboot the system.
I ended up reinstalling desktop os again. will try your suggestion next time