我在不同的内核上加载 NVIDIA 驱动程序时遇到了麻烦。我想我已经把问题缩小到驱动程序安装上了。我安装了最新的 450 驱动程序,但旧 440 驱动程序还有残留,我不知道如何卸载它们并重新安装 450 驱动程序。
dpkg -l | grep nvidia
ii libnvidia-common-450 450.57-0ubuntu0~0.20.04.2 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-440:amd64 440.100-0ubuntu0.20.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-450:amd64 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-450:i386 450.57-0ubuntu0~0.20.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii screen-resolution-extra 0.18build1 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-450 450.57-0ubuntu0~0.20.04.2 amd64 NVIDIA binary Xorg driver
问题似乎是“rc libnvidia-compute-440:amd64 440.100-0ubuntu0.20.04.1 amd64 NVIDIA libcompute 包”
有人有什么建议吗?谢谢。
答案1
没关系,我自己已经找到答案了。(感谢 pilot6)
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get --purge remove libnvidia-compute-440
然后重新安装了 NVIDIA 驱动程序。现在我的驱动程序可以在我安装的不同版本的内核上运行。希望这能在未来帮助到其他人。