While installing CUDA 10.1 (via the network deb) on Ubuntu 18.10, I was asked to set up a password for Mok. When I rebooted my computer I was met with the Mok Manager blue screen, where I presume I was supposed to use the previously set up password. However, instead of choosing Enroll MOK, I accidentally continued with the boot.
After booting, nvcc --version
returned the correct output (10.1) but when I tried to check my drivers using nvidia-smi
I got:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I figured that this was a result of skipping the MOK Enroll, so I tried rebooting but the blue MOK screen did not reappear. I tried following some guides in an effort to get back to that screen, but I wasn't able to do so. Also, interestingly, now running nvcc--version
returns
Command 'nvcc' not found, but can be installed with: sudo apt install nvidia-cuda-toolkit
This is especially strange because an nvcc executable can be found in /usr/local/cuda/bin. I am unsure of how to proceed from here. I have narrowed it down to the following options:
- Disable secure boot (apparently it can mess with nvidia drivers). I don't know if this will help or worsen the situation. I am also unsure of how to do this on my system.
- Somehow get back to the blue MOK screen and choose the MOK enroll option. I have tried doing this but haven't been successful.
- Remove everything related to nvidia from my computer and reinstall nvidia drivers, then reinstall CUDA. I'm not sure if this is good enough or if there is a deeper issue.
- It is possible that the correct problem/solution is something else entirely, in which case any of the above might make the problem worse.
If it is helpful, here is the output of ubuntu-drivers devices
(excluding the modalias):
vendor : NVIDIA Corporation model : GM107M [GeForce GTX 960M] driver : nvidia-driver-418 - third-party free recommended driver : nvidia-driver-390 - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin
I am currently running a dual boot system with Windows 10 and Ubuntu 18.10 (which might have implications for my MOK/GRUB situation). According to lspci -nnk | grep -i vga -A3
my Intel graphics driver is currently in use. Here is the output of lspci | grep -i nvidia
:
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
My end goal was to set up CUDA and cuDNN for PyTorch. I would greatly appreciate any help with how to move forward.