【已解决】ubuntu nividia-smi 出现“Make sure that the latest NVIDIA driver is installed and running.”

当运行nvidia-smi提示“NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver”时,通过更新Ubuntu内核到4.12.9并重新安装nvidia-390驱动来解决问题。详细步骤包括下载内核deb文件,使用dpkg安装,验证内核版本,以及使用apt-get清除并安装新的NVIDIA驱动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

有个小朋友不知更新了啥导致服务器输入nvidia-smi之后显示如下信息:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.


此问题我找了半天原因,不管怎么重装nvidia驱动都不对,最后有用的解决方案是更新内核。


主要参考资料:https://devtalk.nvidia.com/default/topic/1000340/cuda-setup-and-installation/-quot-nvidia-smi-has-failed-because-it-couldn-t-communicate-with-the-nvidia-driver-quot-ubuntu-16-04/post/5233711/#5233711

解决方案:更新Ubuntu内核(我们服务器从Linux 3.13.0-24-generic更新至Linux 4.12.9-041209-generic),然后按照正常流程安装最新的驱动nvidia-390

具体操作如下
#系统内核更新
#下载3个内核deb安装文件
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.9/linux-headers-4.12.9-041209_4.12.9-041209.201708242344_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.9/linux-headers-4.12.9-041209-generic_4.12.9-041209.201708242344_amd64.deb
wget http://kernel.ubuntu.com/

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值