I have been trying to install CUDA Toolkit, but I have been running into the same issues even after multiple clean Ubuntu installations. After reboot, I run into a login screen with incorrect resolution. Logging in quickly breaks back to the same login screen. Here is the issue.
One possible duplicate issue. And another. Neither has a satisfactory answer for how to properly install CUDA.
Here is my process:
- Fresh installation of Ubuntu 16.04 from USB drive on clean partition
- Download a couple applications (Intellij, Conda, etc)
- Verify GPU with
lspci | grep -i nvidia
- Check distribution with
uname -m && cat /etc/*release
- Check gcc installation with
gcc --version
- Check kernel with
uname -r
- Double-check kernel with
sudo apt-get install linux-headers-$(uname -r)
(no updates found) - Download CUDA for
Linux x86_64 Ubuntu 16.04 deb (local)
- Check checksum with
md5sum <file>
- No conflicting installation methods should exist (???)
sudo dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
The installation finishes properly and I reboot the computer to the above issue. What am I doing wrong? What is a workaround? I'm fine with reinstalling Ubuntu one more time as long as I can get CUDA properly installed.