After attempting to install Nvidia drivers on Ubuntu 16.04, I get caught in a login loop and resolution is off.
First, in order to log in again, we must purge the current Nvidia drivers. This can be done by
- Log into your computer without the graphical interface by pressing ctrl + alt + f3 and entering your username and password.
- Run sudo apt-get purge nvidia-* to remove the current Nvidia drivers.
- Run sudo reboot to restart your computer.
In the DevNet documentation we installed Clang as our primary compiler. The drivers, however, must be compiled with GCC. In order for drivers to be properly installed, we must switch our compiler back to GCC, then install.
- Run sudo update-alternatives --config cc and select GCC
- Install Drivers
- Run sudo update-alternatives --config cc and select Clang to change back to our standard.
Furthermore, some people have reported that installing drivers via the installation file supplied by Nvidia will cause the drivers to fail upon a system update. Instead, you can install them via a repository, which should update as the system updates. You can do that with these commands
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt-get install nvidia-***
where *** is your driver version.
You can find which version of the driver you need with this link: