我一直尝试在 ubuntu-20.04 中安装 nvidia 驱动程序,并且“sudo ubuntu-drivers install”出现了以下错误。
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-460 : Depends: libnvidia-gl-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-extra-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-encode-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: nvidia-utils-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-cfg1-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-fbc1-460 (= 460.73.01-0ubuntu0.20.04.1) but it is not going to be installed
Recommends: nvidia-settings but it is not going to be installed
Recommends: libnvidia-compute-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
Recommends: libnvidia-decode-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
Recommends: libnvidia-encode-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
Recommends: libnvidia-ifr1-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
Recommends: libnvidia-fbc1-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
Recommends: libnvidia-gl-460:i386 (= 460.73.01-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.
我尝试过不同论坛上的几种方法,但都没有成功。
“sudo apt --fix-broken install” 不能解决问题。
我已尝试下面链接中给出的解决方案。
但是,“sudo apt-get install --fix-broken xorg-video-abi-11 xserver-xorg-core -y”命令似乎也无法解决问题。尝试从 nvidia PPA 安装,问题仍然存在。
我已将系统详细信息附加在下面。
OS: Ubuntu 20.04.2 LTS x86_64
Host: Nitro AN515-43 V1.10
Kernel: 5.8.0-53-generic
Uptime: 31 mins
Packages: 2293 (dpkg), 13 (snap)
Shell: bash 5.0.17
Resolution: 1920x1080
DE: GNOME
Terminal: gnome-terminal
CPU: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (8) @ 2.100
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
GPU: AMD ATI 05:00.0 Picasso
Memory: 3275MiB / 5944MiB
答案1
这看起来与 Pop_OS! 用户最近遇到的问题类似。System76 已经为 Pop_OS! 修补了这个问题,并已通知 Ubuntu 开发人员。我认为这将在几周内得到解决 - 耐心等待。
请看:https://www.reddit.com/r/pop_os/comments/n5j8c0/nvidia_driver_4652402_issues/