【显卡掉了,NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.】

解决NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. 显卡掉了

驱动掉了:重新安装
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.s

先apt装

查看推荐版本(recommand)

ubuntu-drivers devices

安装

sudo apt install nvidia-drivers-470(换成推荐版本)

或者

sudo ubuntu drivers autoinstall (自动装推荐版本)

然后重启

nvidia-smi 看看行不行
lsmod | grep nvidia没输出,就是没内核没载入模块

====

不行再dkms装

显卡连接检查

sudo lshw -C display

查看已经安装的显卡驱动

ls /usr/src | grep nvidia 

有输出,如–>nvidia-530.41.03<–表明驱动程序的相关文件已经存在于系统中,但并不能确保驱动程序已经完全安装并正在正常运行。

然后执行

sudo apt-get install dkms (不会影响内核,主要是管理驱动的)

再执行

sudo dkms install -m nvidia -v 530.41.03(版本号换自己的)

如果Error! Your kernel headers for kernel 5.15.0-102-generic cannot be found.

sudo apt install linux-headers-5.15.0-102-generic(这个根据错误的提示来)

重启一下就可以了

  • 11
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值