我有一台“HP ZBook 15v G5”,我正在尝试让“推荐的” Nvidia 图形驱动程序与其配合使用。
运行以下建议nvidia-driver-455
是推荐的:
➜ ~ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001CBCsv0000103Csd0000847Bbc03sc00i00
vendor : NVIDIA Corporation
model : GP107GLM [Quadro P600 Mobile]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-455 - third-party free recommended
driver : nvidia-driver-440-server - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-450 - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
但是当我尝试自动安装它们时,我得到:
➜ ~ 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.
linux-modules-nvidia-455-generic-hwe-20.04 : Depends: nvidia-kernel-common-455 (<= 455.38-1) but 455.45.01-0ubuntu0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
不确定是否值得注意,我确实从 Ubuntu 18.04 升级了,但也没有让它们运行。
如果这很明显的话,请原谅,因为我还没有太多使用 Ubuntu 上的图形驱动程序的经验。
看来我目前正在使用 Nouveau 显示驱动程序,并且我正在尝试将它们更新为 Nvidia 驱动程序,因为有时我的第二台显示器在切换应用程序时会变黑 10 或 15 秒,然后再次恢复:
答案1
清除其他“保留的包”并删除其他可能存在的问题(如libsane
)后nvidia-driver-455
,仍因未满足的依赖关系而失败。
重新安装 nvidia 驱动程序最终解决了该问题。
sudo apt-get remove nvidia*
shutdown -r now
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo ubuntu-drivers autoinstall
shutdown -r now