安装Nvidia驱动时问题解决——unable to locate the kernel source

安装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
  • 8
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值