0
0

Ubuntu系统重启后英伟达显卡无法检测到

2026-06-03

1.报错

# 执行命令
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.

2.报错原因

系统内核版本自动更新了:

NVIDIA内核驱动版本和系统驱动不一致(内核版本自动更新了,导致新版本内核和原来显卡驱动不匹配)

3.解决办法

1.查看已安装驱动的版本信息:

ls /usr/src | grep nvidia

2.查看已安装内核:

dpkg --get-selections |grep linux-image

查看正在使用的内核:

uname -a

3.依次输入以下两条命令即可:

sudo apt-get install dkms

sudo dkms install -m nvidia -v 525.105.17
#这里的525.105.17是自己的显卡驱动版本

image.png

image.png

4.输入nvidia-smi检测显卡驱动是否显示

4.参考链接

Ubuntu:解决显卡驱动问题NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver._ubuntu nvidia-smi has failed because it couldn’t c-CSDN博客