需要帮助来清理所有不需要的 nvidia 驱动程序

需要帮助来清理所有不需要的 nvidia 驱动程序

我刚刚开始使用 Ubuntu,我正在尝试了解那些驱动程序和 GPU。

我需要在我的 Ubuntu 20.04 中安装nvidia 390。但似乎我安装了很多其他驱动器,我还在学习。

我如何才能查看可用的 GPU、选择一个默认使用、删除所有不需要的驱动程序并仅安装nvidia 390

如果缺少一些信息,请在下面评论,我会在这里打印作为该问题的更新。

更新

以下是 nvidia dpkg 的列表:

@ubuntu:~$ dpkg -l | grep nvidia
ii  libnvidia-cfg1-390:amd64                   390.138-0ubuntu0.20.04.1              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.138-0ubuntu0.20.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-450                       450.66-0ubuntu0.20.04.1               all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-390:amd64                390.138-0ubuntu0.20.04.1              amd64        NVIDIA libcompute package
ii  libnvidia-compute-390:i386                 390.138-0ubuntu0.20.04.1              i386         NVIDIA libcompute package
rc  libnvidia-compute-450:amd64                450.66-0ubuntu0.20.04.1               amd64        NVIDIA libcompute package
ii  libnvidia-decode-390:amd64                 390.138-0ubuntu0.20.04.1              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-390:i386                  390.138-0ubuntu0.20.04.1              i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-390:amd64                 390.138-0ubuntu0.20.04.1              amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-390:i386                  390.138-0ubuntu0.20.04.1              i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-450:amd64                  450.66-0ubuntu0.20.04.1               amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-390:amd64                   390.138-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-390:i386                    390.138-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-390:amd64                     390.138-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-390:i386                      390.138-0ubuntu0.20.04.1              i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-390:amd64                   390.138-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-390:i386                    390.138-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-390                   390.138-0ubuntu0.20.04.1              amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-450                   450.66-0ubuntu0.20.04.1               amd64        NVIDIA compute utilities
ii  nvidia-dkms-390                            390.138-0ubuntu0.20.04.1              amd64        NVIDIA DKMS package
rc  nvidia-dkms-450                            450.66-0ubuntu0.20.04.1               amd64        NVIDIA DKMS package
ii  nvidia-driver-390                          390.138-0ubuntu0.20.04.1              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-390                   390.138-0ubuntu0.20.04.1              amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-450                   450.66-0ubuntu0.20.04.1               amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-390                   390.138-0ubuntu0.20.04.1              amd64        NVIDIA kernel source package
ii  nvidia-modprobe                            440.44-1                              amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-prime                               0.8.14                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            440.82-0ubuntu0.20.04.1               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-390                           390.138-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-390              390.138-0ubuntu0.20.04.1              amd64        NVIDIA binary Xorg driver

以下是另一个包含更多信息的更新:

@ubuntu:~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
    Subsystem: Hewlett-Packard Company HD Graphics 5500
    Kernel driver in use: i915
    Kernel modules: i915
--
09:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
    Subsystem: Hewlett-Packard Company GeForce 820M
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
0a:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

答案1

如您所见,390 Nvidia 驱动程序已安装ii

没有其他事可做。

唯一一个看起来没什么用的包是libnvidia-common-450。但它应该不会造成任何危害。

相关内容