In summary sudo apt-get remove -purge '^nvidia-.*'Įcho 'nouveau' | sudo tee -a /etc/modulesĪlthough all above commands not needed, this is my way to completely purge the nvidia driver and use the open source nounveau. Last, search for the nf file and remove it as well sudo rm /etc/X11/nf Step 1 Clean the system of other Nvidia drivers Before we start installing the correct driver, we need to clean the system of any previously installed driver that might create software issues.
#How to remove nvidia drivers ubuntu 18.04 install#
If you want to be sure that nouveau will be load in boot, you can force-load it by add it to /etc/modules echo 'nouveau' | sudo tee -a /etc/modules This tutorial will help users that want to install drivers for their NVIDIA GPU on Ubuntu 18.04 LTS OS. With purge command it should UN-blacklisted. So after above command you should also give the installation command for ubuntu-desktop package sudo apt-get install ubuntu-desktopĪlso sometimes the nouveau driver get blacklisted from nvidia driver.
![how to remove nvidia drivers ubuntu 18.04 how to remove nvidia drivers ubuntu 18.04](https://developernote.com/wp-content/uploads/2017/12/linux-nvidia2.png)
* in the end means (Purge everything that begins ( ^) with the name nvidia-)Ībove command will also remove the nvidia-common package and the nvidia-common package has as a dependency the ubuntu-desktop package. If you want to be sure that you will purge everything related to nvidia you can give this command sudo apt-get remove -purge '^nvidia-.*' dpkg -l | grep -i nvidiaĮxcept the package nvidia-common all other packages should be purged. Search what packages from nvidia you have installed. No need to blacklist something, but sometimes maybe a force-load of the nouveau module needed. However when i tried to install cuda 10. So i checked the cuda compability with TF and found out that cuda 10.0 is necessary.
![how to remove nvidia drivers ubuntu 18.04 how to remove nvidia drivers ubuntu 18.04](https://arstech.net/wp-content/uploads/2019/03/Disable-Nouveau-Nvidia-Driver-on-Ubuntu-18.04.png)
If you remove -purge the nvidia driver you will be OK. I am working on a git project that run tensorflow-gpu 1.15 inside a docker using GPU. You can open a terminal with Ctrl + Alt+ T keys combo.