Page MenuHomePhabricator

Nvidia Driver Login Loop
Closed, ResolvedPublic

Asked by bdvolwiler on Jun 29 2017, 8:11 PM.
"Like" token, awarded by jcmcdonald.


After attempting to install Nvidia drivers on Ubuntu 16.04, I get caught in a login loop and resolution is off.

Answer Summary

First, in order to log in again, we must purge the current Nvidia drivers. This can be done by

  1. Log into your computer without the graphical interface by pressing ctrl + alt + f3 and entering your username and password.
  2. Run sudo apt-get purge nvidia-* to remove the current Nvidia drivers.
  3. 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.

  1. Run sudo update-alternatives --config cc and select GCC
  2. Install Drivers
  3. 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:

New Answer


This question has been marked as closed, but you can still leave a new answer.