0% found this document useful (0 votes)
73 views10 pages

How To Uninstall NVIDIA Drivers in Ubuntu

Sometimes you may need to uninstall NVIDIA drivers from Ubuntu/Debian systems. Here is how to complete uninstall all NVIDIA drivers in Ubuntu. #nvidia #ubuntu #webdevelopment Visit https://techimbo.com/how-to-uninstall-nvidia-drivers-in-ubuntu/

Uploaded by

techimbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views10 pages

How To Uninstall NVIDIA Drivers in Ubuntu

Sometimes you may need to uninstall NVIDIA drivers from Ubuntu/Debian systems. Here is how to complete uninstall all NVIDIA drivers in Ubuntu. #nvidia #ubuntu #webdevelopment Visit https://techimbo.com/how-to-uninstall-nvidia-drivers-in-ubuntu/

Uploaded by

techimbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

How to Uninstall NVIDIA

Drivers in Ubuntu
Remove Purge
If you use remove –purge command for the NVIDIA drivers it will be fine. You may need to force load
nouveau module. First, search which NVIDIA packages have been installed. For this, open terminal
and run the following command.

$ dpkg -l | grep -i nvidia

You will see a list of packages with string ‘nvidia’ in their name. Except, nvidia-common package, all
other packages must be purged. If you want to individually remove each package, you can do it with
‘rm -r’ command. If you are sure you want to purge all NVIDIA packages including nvidia-common,
run the following command.

$ sudo apt-get remove --purge '^nvidia-.*'

In the above command, ^ means beginning with, and * at the end means all packages containing
‘nvidia- at its beginning.
Install Ubuntu-Desktop

Now, if you have purged all NVIDIA packages including nvidia-common, then you should know that it
has ubuntu-desktop as a dependency.

So when you remove nvidia-common package, it may end up deleting ubuntu-desktop. So run the
following command to reinstall ubuntu-desktop.

$ sudo apt-get install ubuntu-desktop


Enable nouveau module
Sometimes, when you purge all NVIDIA packages, it may end up blacklisting nouveau module. To
ensure that it is loaded during boot, add it to /etc/modules, with the following command.

$ echo 'nouveau' | sudo tee -a /etc/modules


Remove xorg.conf
Lastly, remove xorg.conf file as well.

$ sudo rm /etc/X11/xorg.conf

That’s it. These steps should completely remove NVIDIA drivers from your system. Thy should work
for all Ubuntu/Debian systems.

Alternatively, you can also directly run the following command to uninstall NVIDIA drivers from your
system.

$ sudo nvidia-uninstall

Please note, the above command may not work for all systems, but mainly for drivers installed from
NVIDIA website.
Install OpenSSL
Run the following command to install OpenSSL.

$ sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib


$ sudo make
$ sudo make test

$ sudo make install


Configure OpenSSL Shared Libraries
Create a new configuration file openssl-1.1.1c.conf for OpenSSL at /etc/ld.so.conf.d/

$ sudo vi /etc/ld.so.conf.d/openssl-1.1.1c.conf

Add the following line to it.

/usr/local/ssl/lib

Save and exit the file. Reload it with the following command.

$ sudo ldconfig -v
Configure OpenSSL Binary ( 1 of 2)
Next, we are going to replace the binary of our old OpenSSL version at /usr/bin/openssl with the
new one that we just installed at /usr/local/ssl/bin/openssl

First we backup binary files. Then copy it with the following command.

$ sudo mv /usr/bin/c_rehash /usr/bin/c_rehash.backup

$ sudo mv /usr/bin/openssl /usr/bin/openssl.backup

Open environment PATH variable.

sudo vi /etc/environment
Configure OpenSSL Binary ( 2 of 2)
Add :/usr/local/bin/openssl folder to PATH variable. Please note the colon at the beginning of folder
path.

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/
local/games:/usr/local/ssl/bin"

Save and close the file. Now reload the PATH environment with the following command.

$ source /etc/environment

Now if you check the OpenSSL version again, it will show the latest version, indicating that Ubuntu is
picking the right OpenSSL.

$ openssl version -a

1.1.1
Thank You

Visit for details


https://techimbo.com/how-to-uninstall-nvidia-drivers-in-ubu
ntu/

You might also like