ubuntu 安装NVIDIA驱动或CUDA报错:“The driver installation is unable to locate the kernel source....” 或者是无法登录

ubuntu 安装NVIDIA驱动或CUDA报错:“The driver installation is unable to locate the kernel source....” 或者是无法登录系统界(loop login )

主要原因更主板的BIOS设置有关!!

UEFI下的设置

这里首先要重启,华硕主板按Delete或者F2进入UEFI界面。

UEFI禁用Fast Boot

进入UEFI后,按F7进入Advanced Mode,在Boot菜单下,将Fast Boot改为Disable。


方法一:

 Disable UEFI Secure Boot (if possible), or use a kernel that doesn't require signed modules.How to disable Secure Boot on Ubuntu, then!?!?

Since Ubuntu kernel build 4.4.0-21.37 this can be fixed by running:
sudo apt install mokutil
sudo mokutil --disable-validation

Since questions may arise, see third party kernel modules on UEFI with enabled Secure Boot and the consequences of disabling it.

方法二:

重启机器按F2 进入BIOS系统,找到Boot (启动)选项

(1)Security 中的 Secure Boot 如果是Windows UTFILE system ,务必设置为“Disabled" (一般设置这个就可以了)


卸载:

4.6. Uninstallation

To uninstall the CUDA Toolkit, run the uninstallation script provided in the bindirectory of the toolkit. By default, it is located in /usr/local/cuda-9.0/bin:

$ sudo /usr/local/cuda-9.0/bin/uninstall_cuda_9.0.pl

To uninstall the NVIDIA Driver, run nvidia-uninstall:

$ sudo /usr/bin/nvidia-uninstall

To enable the Nouveau drivers, remove the blacklist file created in the DisablingNouveau section, and regenerate the kernel initramfs/initrd again as described in thatsection.

你可能感兴趣的:(图像识别和分类)