外接显示器无法连接 | Ubuntu 20.04.3

外接显示器无法连接 | Ubuntu 20.04.3

我在将外接显示器连接到笔记本电脑时遇到问题。我使用的是 Ubuntu 20.04.3。有什么想法吗?我查了一下这个问题,似乎我的软件包中可能出了问题...

sudo ubuntu-drivers autoinstall
[sudo] password for harry: 
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
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-510 : Depends: libnvidia-gl-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-extra-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-decode-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-cfg1-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-fbc1-510 (= 510.47.03-0ubuntu0.20.04.1) but it is not going to be installed
                     Recommends: libnvidia-compute-510:i386 (= 510.47.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-decode-510:i386 (= 510.47.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-encode-510:i386 (= 510.47.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-fbc1-510:i386 (= 510.47.03-0ubuntu0.20.04.1)
                     Recommends: libnvidia-gl-510:i386 (= 510.47.03-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.

提前感谢您的所有帮助!

答案1

我遇到了同样的问题 - 我很惊讶它除了列出依赖包之外没有提供更多信息。我开始尝试 sudo apt 安装依赖包,希望它们能提供更多信息。

  1. 我试过 sudo apt install libnvidia-gl-510
  2. 这告诉我对 libnvidia-common-510 的依赖未得到满足
  3. 所以我没有 sudo apt install libnvidia-common-510
  4. 它自行安装并且安装了一堆其他的 nvidia 软件包。
  5. 重新启动
  6. HDMI 工作正常!

相关内容