CUDA 11.7 无法在 Debian sid 上安装

CUDA 11.7 无法在 Debian sid 上安装

我正在尝试使用以下命令在 Debian sid 上安装 CUDA 11.7(最新)NVIDIA 推荐的方法,但遇到以下错误:

$ uname -a
Linux foo 5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17.3-1 (2022-04-18) x86_64 GNU/Linux
$ sudo apt install cuda
Reading package lists... Done
Building dependency tree... Done
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:
 xserver-xorg-video-nvidia : Depends: xorg-video-abi-24 but it is not installable or
                                      xorg-video-abi-23 but it is not installable 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.20.99) but 2:21.1.3-2+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

我相信旧的xorg/xserver软件包不再是合格的安装候选者,因为我上次apt安装了新软件包。除此之外,我的系统上没有奇怪的损坏的依赖项;一切都是最新的。xcvtsudo apt dist-upgrade

  1. 此时安装 CUDA 的最佳方法是什么?有没有办法在不降级一堆软件包的情况下安装它? (安装xcvt还导致许多 x* 软件包被升级,所以我什至不确定我必须恢复的所有内容或其他可能会破坏的内容。)

  2. 这是 Debian/NVIDIA 之间无意的不兼容吗?如果是,是否应该将其报告为 Debian bug 或类似的问题?我不清楚是否有人需要发布更新的软件包版本或类似的东西来解决这些不兼容性。

相关内容