我安装了全新版本的 Ubuntu 20.04,没有安全启动,当我运行 nvidia-smi 时出现以下错误:
NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。请确保已安装并运行最新的 NVIDIA 驱动程序。
以下是我尝试过遵循的文章并且尝试过所有的解决方案: https://clay-atlas.com/us/blog/2022/07/29/solved-nvidia-smi-has-failed-because-it-couldnt-communicate-with-the-nvidia-driver-make-sure-that-the-latest-nvidia-driver-is-installed-and-running/
NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。请确保已安装并运行最新的 NVIDIA 驱动程序
这些是我的输出:
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.
然后
cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 515.86.01 Wed Oct 26 09:12:38 UTC 2022
GCC version: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
然后:
pkg -l | grep nvidia
ii libnvidia-cfg1-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-515 515.86.01-0ubuntu0.20.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA libcompute package
ii libnvidia-decode-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-515:amd64 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii linux-objects-nvidia-515-5.15.0-46-generic 5.15.0-46.49~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.15.0-46 (objects)
ii linux-objects-nvidia-515-5.15.0-60-generic 5.15.0-60.66~20.04.1 amd64 Linux kernel nvidia modules for version 5.15.0-60 (objects)
ii linux-signatures-nvidia-5.15.0-46-generic 5.15.0-46.49~20.04.1+1 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-46-generic
ii linux-signatures-nvidia-5.15.0-60-generic 5.15.0-60.66~20.04.1 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-60-generic
ii nvidia-compute-utils-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA compute utilities
ii nvidia-dkms-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA DKMS package
ii nvidia-driver-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-515 515.86.01-0ubuntu0.20.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.14 all Tools to enable NVIDIA's Prime
ii nvidia-settings 470.57.01-0ubuntu0.20.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18build1 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-515 515.86.01-0ubuntu0.20.04.1 amd64 NVIDIA binary Xorg driver
然后
whereis nvidia
nvidia: /usr/lib/x86_64-linux-gnu/nvidia /usr/lib/nvidia /usr/share/nvidia /usr/src/nvidia-515.86.01/nvidia
三天内我已经尝试全新安装至少 8 次了 :(
有人可以告诉我如何解决这个问题吗?我需要帮助:(