Ubuntu 20.04,ubuntu-drivers:无法纠正问题,您持有损坏的软件包(抱怨 nvidia-driver-515)

Ubuntu 20.04,ubuntu-drivers:无法纠正问题,您持有损坏的软件包(抱怨 nvidia-driver-515)

当我在 Ubuntu 20.04 上运行时sudo ubuntu-drivers autoinstall,出现以下情况:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-515 : Depends: libnvidia-gl-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-extra-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-decode-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-encode-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-cfg1-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Depends: libnvidia-fbc1-515 (= 515.48.07-0ubuntu0.20.04.2) but it is not going to be installed
                     Recommends: libnvidia-compute-515:i386 (= 515.48.07-0ubuntu0.20.04.2)
                     Recommends: libnvidia-decode-515:i386 (= 515.48.07-0ubuntu0.20.04.2)
                     Recommends: libnvidia-encode-515:i386 (= 515.48.07-0ubuntu0.20.04.2)
                     Recommends: libnvidia-fbc1-515:i386 (= 515.48.07-0ubuntu0.20.04.2)
                     Recommends: libnvidia-gl-515:i386 (= 515.48.07-0ubuntu0.20.04.2)
E: Unable to correct problems, you have held broken packages.

我的笔记本电脑(戴尔 Inspiron 15 5510,制造商预装了 Ubuntu)也出现了这种情况。
我尝试了很多其他人在网上向其他人推荐的方法,但都不起作用。
这是输出dpkg -l | grep -i nvidia(虽然 515 显示在“软件和更新”用户界面上,但列表中看不到它,但并未使用):

ii  libnvidia-cfg1-470:amd64                   470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-470                       470.129.06-0ubuntu0.20.04.1                             all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-450:amd64                460.91.03-0ubuntu0.20.04.1                              amd64        Transitional package for libnvidia-compute-460
ii  libnvidia-compute-470:amd64                470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:i386                 470.129.06-0ubuntu0.20.04.1                             i386         NVIDIA libcompute package
ii  libnvidia-decode-470:amd64                 470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-470:i386                  470.129.06-0ubuntu0.20.04.1                             i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-470:amd64                 470.129.06-0ubuntu0.20.04.1                             amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-470:i386                  470.129.06-0ubuntu0.20.04.1                             i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-470:amd64                  470.129.06-0ubuntu0.20.04.1                             amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-470:amd64                   470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-470:i386                    470.129.06-0ubuntu0.20.04.1                             i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-470:amd64                     470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-470:i386                      470.129.06-0ubuntu0.20.04.1                             i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-470:amd64                   470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-470:i386                    470.129.06-0ubuntu0.20.04.1                             i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-470                   470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA compute utilities
ii  nvidia-dkms-470                            470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA DKMS package
ii  nvidia-driver-450                          460.91.03-0ubuntu0.20.04.1                              amd64        Transitional package for nvidia-driver-460
ii  nvidia-driver-460                          470.129.06-0ubuntu0.20.04.1                             amd64        Transitional package for nvidia-driver-470
ii  nvidia-driver-470                          470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-470                   470.129.06-0ubuntu0.20.04.1                             amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-470                   470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.16~0.20.04.2                                        all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            470.57.01-0ubuntu0.20.04.3                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-470                           470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA driver support binaries
ii  oem-fix-gfx-nvidia-ondemandmode            1.2                                                     all          Set the power ondemand mode by default
ii  screen-resolution-extra                    0.18build1                                              all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-470              470.129.06-0ubuntu0.20.04.1                             amd64        NVIDIA binary Xorg driver

*顺便说一句,导致我尝试升级驱动程序的初始问题是,有时我的笔记本电脑在进入睡眠状态后无法唤醒,我必须重新启动(这很烦人)。


-- 任何帮助或想法都将不胜感激。提前致谢!

答案1

相关内容