I would like to know if I can install nvidia graphics drivers on a system running Ubuntu 16.0.4 LTS without rebooting.

I have this requirement created that I should be able to:

1) Install nvidia graphics drivers, say version X, on Ubuntu machine.
   Ubuntu, by default, come with nouveau driver. 
   So this step should uninstall nouveau and install nvidia driver version X

2) Uninstall nvidia driver version X and install nvidia version Y.

Basically, I would like to switch between graphics drivers(uninstall/install) without rebooting the system.

I would like to know if someone has tried this. Or got any idea how to achieve this.



1 Answer 1


This worked for me on Ubuntu 20.04 LTS:

sudo modprobe nvidia

after I'd installed the drivers with

sudo apt install -y ubuntu-drivers-common && sudo ubuntu-drivers autoinstall

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.