安装Nvidia驱动时问题解决——unable to locate the kernel source
2018年04月01日 14:44:57
阅读数:926
1.目的:本人在Ubuntu16.04LTS系统上搭建CUDA8.0+CUDNN5.1环境,具体的安装方法见大神的博客
http://blog.csdn.net/yhaolpz https://blog.csdn.net/yhaolpz/article/details/71375762
但其中安装驱动的部分参考https://blog.csdn.net/xlxxybz1314/article/details/75142759
因为可能cuda的安装文件里面自带的驱动有些老,安装后会有各种各样的错误。
超级详细~但是我在安装Nvidia驱动时报了错
2.问题详细描述:
Installing the NVIDIA display driver... The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly. If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.
3.解决办法:
(1)install dkms:
sudo apt install dkms
(2)再次运行安装命令,如:
sudo ./cuda_8.0.61_375.26_linux.run