How To Uninstall NVIDIA Drivers in Ubuntu
How To Uninstall NVIDIA Drivers in Ubuntu
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.
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.
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 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 vi /etc/ld.so.conf.d/openssl-1.1.1c.conf
/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 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