![Ubuntu 18.04.6 LTS 在 Ubuntu 18 中运行 nvidia-smi 时出现错误“NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。”](https://linux22.com/image/1024544/Ubuntu%2018.04.6%20LTS%20%E5%9C%A8%20Ubuntu%2018%20%E4%B8%AD%E8%BF%90%E8%A1%8C%20nvidia-smi%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%E2%80%9CNVIDIA-SMI%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E6%97%A0%E6%B3%95%E4%B8%8E%20NVIDIA%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E9%80%9A%E4%BF%A1%E3%80%82%E2%80%9D.png)
如下图所示,我在 Ubuntu 18.04.6 LTS 上安装了 nvidia 470 驱动程序,但当我运行 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 470,但图形设置为“llvmpipe(LLVM 10.0.0,256 位)”。
我进行了一些谷歌搜索,发现一些建议是禁用安全启动,所以我检查并发现安全启动已经关闭。
我还删除了 nvidia 驱动程序并重新安装这些步骤但重启后同样的问题仍然存在。
请问有什么建议吗?
运行时lspci -k | grep -EA3 'VGA|3D'
结果如下:
0000:17:00.0 VGA compatible controller: NVIDIA Corporation Device 1e30 (rev a1)
Subsystem: Dell Device 12ba
Kernel modules: nvidiafb, nouveau
0000:17:00.1 Audio device: NVIDIA Corporation Device 10f7 (rev a1)
--
0000:73:00.0 VGA compatible controller: NVIDIA Corporation Device 1e30 (rev a1)
Subsystem: Dell Device 12ba
Kernel modules: nvidiafb, nouveau
0000:73:00.1 Audio device: NVIDIA Corporation Device 10f7 (rev a1)
--
0000:a6:00.0 VGA compatible controller: NVIDIA Corporation Device 1e30 (rev a1)
Subsystem: Dell Device 12ba
Kernel modules: nvidiafb, nouveau
0000:a6:00.1 Audio device: NVIDIA Corporation Device 10f7 (rev a1)
的输出dkms status
为:
nvidia, 470.74: added
nvidia-fs, 2.7.53: added
oem-ethernet-intel-igb-lp1805326-5.3.5.22, 0.2, 4.15.0-1027-oem, x86_64: installed