取决于虚拟包?

取决于虚拟包?

我正在尝试安装旧的旧驱动程序(Nvidia 304):

sudo apt install nvidia-legacy-304xx-driver
The following packages have unmet dependencies:
 glx-alternative-nvidia : Breaks: nvidia-legacy-304xx-alternative (< 304.137-7~) but 304.137-5~deb9u1 is to be installed
                          Breaks: nvidia-legacy-304xx-driver (< 304.137-7~) but 304.137-5~deb9u1 is to be installed
 nvidia-legacy-304xx-driver : Depends: xserver-xorg-video-nvidia-legacy-304xx (= 304.137-5~deb9u1) but it is not installable
                              Depends: nvidia-legacy-304xx-kernel-dkms (= 304.137-5~deb9u1) but it is not installable or
                                       nvidia-legacy-304xx-kernel-304.137
E: Unable to correct problems, you have held broken packages.

好的...

sudo apt-get install --fix-broken xserver-xorg-video-nvidia-legacy-304xx nvidia-legacy-304xx-kernel-dkms -y

...

The following packages have unmet dependencies:
 glx-alternative-nvidia : Breaks: nvidia-legacy-304xx-alternative (< 304.137-7~) but 304.137-5~deb9u1 is to be installed
                          Breaks: xserver-xorg-video-nvidia-legacy-304xx (< 304.137-7~) but 304.137-5~deb9u1 is to be installed
 nvidia-kernel-common : Breaks: nvidia-legacy-304xx-kernel-support (< 305) but 304.137-5~deb9u1 is to be installed
 xserver-xorg-video-nvidia-legacy-304xx : Depends: xorg-video-abi-23 or
                                                   xorg-video-abi-20 but it is not installable or
                                                   xorg-video-abi-19 but it is not installable or
                                                   xorg-video-abi-18 but it is not installable or
                                                   xorg-video-abi-15 but it is not installable or
                                                   xorg-video-abi-14 but it is not installable or
                                                   xorg-video-abi-13 but it is not installable or
                                                   xorg-video-abi-12 but it is not installable or
                                                   xorg-video-abi-11 but it is not installable or
                                                   xorg-video-abi-10 but it is not installable or
                                                   xorg-video-abi-8 but it is not installable or
                                                   xorg-video-abi-6.0 but it is not installable
                                          Depends: xserver-xorg-core (< 2:1.19.99) but 2:21.1.4-3 is to be installed
                                          Recommends: nvidia-legacy-304xx-driver (>= 304.137) but it is not installable
                                          Recommends: nvidia-legacy-304xx-vdpau-driver (>= 304.137) but it is not going to be installed
                                          Recommends: nvidia-settings-legacy-304xx but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

好的...

sudo apt-get install --fix-broken xorg-video-abi-23 xserver-xorg-core xserver-xorg-video-nvidia-legacy-304xx nvidia-legacy-304xx-kernel-dkms -y
Package xorg-video-abi-23 is a virtual package provided by:
  xserver-xorg-core 2:1.19.2-1+deb9u5 [Not candidate version]

E: Package 'xorg-video-abi-23' has no installation candidate

最后的希望

sudo apt purge "*nvidia*"
sudo apt autoremove
sudo restart now
sudo apt-get install --fix-broken xorg-video-abi-23 xserver-xorg-core xserver-xorg-video-nvidia-legacy-304xx nvidia-legacy-304xx-kernel-dkms -y

没有什么...

我做错了什么?

操作系统: Debian 11.5.0

/etc/apt/sources.list

# deb cdrom:[Official Debian GNU/Linux Live 11.5.0 gnome 2022-09-10T11:47]/ bullseye main

deb cdrom:[Official Debian GNU/Linux Live 11.5.0 gnome 2022-09-10T11:47]/ bullseye main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye-security main
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/debian-security bullseye-security main
deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

# Debian Sid (Nvidia 340 legacy)
deb http://deb.debian.org/debian/ sid main contrib non-free

# Debian 9 "Stretch" (Nvidia 304 legacy)
deb http://deb.debian.org/debian/ stretch main contrib non-free

答案1

很遗憾304xx 驱动程序不支持 Debian 9 中使用的版本之后的 X.org 版本;如果不对您的发行版进行重大改造,就无法将它们安装在 Debian 10 或更高版本上。

340xx 驱动程序在 Debian 11 或更高版本中也不可用;它们在 Debian不稳定中维护,以便可以更新 Debian 10 软件包,但这些软件包在 Debian 11 上不可用。

注意你永远不应该在你的sources.list当您使用非不稳定版本的 Debian 版本时。

相关内容