How to reinstall Nvidia GPU drivers on Ubuntu desktop

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.

  1. Boot Ubuntu into a single user mode/recovery mode by following
  2. Search for Nvidia driver, run:
    apt search nvidia-driver
  3. Reinstall Nvidia driver (say version 455):
    sudo apt reinstall nvidia-driver-455
  4. Reboot the system.


I ended up reinstalling desktop os again. will try your suggestion next time

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki