How to completely uninstall Nvidia drivers in Ubuntu?
To completely uninstall the NVIDIA driver, you can follow these steps:
- Open the terminal and access the command line interface.
- Run the following command to stop the relevant NVIDIA services:
- Please stop the lightdm service using sudo.
- Alternatively
- Stop the GDM service using sudo.
- Or alternatively
- Please stop the sddm service.
- This depends on the display manager you are using.
- Run the following command to uninstall the NVIDIA driver:
- Remove all packages related to nvidia using the command sudo apt-get purge nvidia*
- This will remove all software packages related to NVIDIA drivers.
- Run the following command to delete any remaining NVIDIA configuration files:
- Remove the xorg.conf file located in /etc/X11 using sudo.
- Remove the directory /etc/X11/xorg.conf.d/ using superuser privileges, forcefully.
- Run the following command to reinstall the default open-source Nouveau driver:
- Install xserver-xorg-video-nouveau using the given command.
- Finally, restart the computer.
- restart the system with administrative privileges
After completing the above steps, your system will no longer be using the NVIDIA driver.