NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver的一种简单解决方法

重启之后发现GPU用不了了,查了一下,大家都说用dkms,例如下面这几篇博客:

https://www.cnblogs.com/leehsiang/p/15879839.html

nvidia-smi报错:NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver 原因及避坑解决方案_打拳的土豆的博客-CSDN博客

但是我按照上面做下来,又报了类似于这样的错:

File: /usr/src/nvidia-525.78.01/dkms.conf does not exist.

实在不知道怎么回事,感觉网上的解决方案都很复杂,在google里搜了一下,发现了下面这个链接:

Ubuntu 22.04 + nvidia drivers not working - Ask Ubuntu

尝试着输入:

sudo apt install nvidia-driver-525

然后重启,竟然好了??估计很多朋友会和我遇到同样的问题,所以简单记录一下。

猜你喜欢

转载自blog.csdn.net/qysh123/article/details/129647009