![软件包依赖于其自身的更高版本(nvidia-kernel-common)](https://linux22.com/image/1182804/%E8%BD%AF%E4%BB%B6%E5%8C%85%E4%BE%9D%E8%B5%96%E4%BA%8E%E5%85%B6%E8%87%AA%E8%BA%AB%E7%9A%84%E6%9B%B4%E9%AB%98%E7%89%88%E6%9C%AC%EF%BC%88nvidia-kernel-common%EF%BC%89.png)
我在启动时收到有关软件包损坏的错误通知。我的电脑非常慢。当我按照建议运行软件包管理器或运行时apt upgrade
,我收到:
nvidia-kernel-common-465 : Depends: nvidia-kernel-common-470 but it is not installed
我试过:
$ sudo apt --fix-broken install
...
dpkg: error processing archive /var/cache/apt/archives/nvidia-kernel-common-470_470.57.02-1pop0~1627044105~18.04~f9815ed~dev_amd64.deb (--unpack):
trying to overwrite '/lib/systemd/system/nvidia-hibernate.service', which is also in package nvidia-driver-465 465.31-1pop0~1623777959~18.04~a3ca7f3~dev
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-kernel-common-470_470.57.02-1pop0~1627044105~18.04~f9815ed~dev_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
以下是我当前的设备:
$ ubuntu-drivers devices
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
== /sys/devices/pci0000:00/0000:00:03.1/0000:0a:00.0 ==
modalias : pci:v000010DEd00001D01sv00001462sd00008C98bc03sc00i00
vendor : NVIDIA Corporation
model : GP108 [GeForce GT 1030]
manual_install: True
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-460-server - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-470 - third-party non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
== /sys/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:05.0/0000:07:00.0 ==
modalias : pci:v00008086d00002526sv00008086sd00000014bc02sc80i00
vendor : Intel Corporation
manual_install: True
driver : backport-iwlwifi-dkms - distro free
答案1
下列的关联由@nobody 发布,我已解决并运行:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-driver-470_470.57.02-0ubuntu0.20.04.1_amd64.deb
sudo apt -f install