我一直在尝试安装 cuda,但我无论如何也想不出这个问题 :(。这是我一直遇到的错误,我想不出这台机器上会出现什么问题。这是 Ubuntu Server 的全新安装(uname -aLinux marte 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
运行 Cosmic)
% sudo apt-get install cuda
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:
cuda : Depends: cuda-10-0 (>= 10.0.130) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
其他一些可能有用的信息吗?
我尝试查找任何损坏的包裹
% sudo debsums --changed
sudo debsums --changed 7.72s user 3.54s system 22% cpu 49.658 total
/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu cosmic main universe
deb http://archive.ubuntu.com/ubuntu cosmic-security main universe
deb http://archive.ubuntu.com/ubuntu cosmic-updates main universe
编辑:尝试手动安装未满足的依赖项,我遇到了以下问题
The following packages have unmet dependencies:
nvidia-410 : Depends: xorg-video-abi-11 but it is not installable or
xorg-video-abi-12 but it is not installable or
xorg-video-abi-13 but it is not installable or
xorg-video-abi-14 but it is not installable or
xorg-video-abi-15 but it is not installable or
xorg-video-abi-18 but it is not installable or
xorg-video-abi-19 but it is not installable or
xorg-video-abi-20 but it is not installable or
xorg-video-abi-23 but it is not installable
Recommends: nvidia-settings (>= 331.20) but it is not going to be installed
Recommends: nvidia-prime (>= 0.5) but it is not going to be installed or
bumblebee but it is not going to be installed
有没有人有什么建议?
答案1
问题是 ubuntu 不知道在哪里找到这些包。在终端中输入以下代码:
add-apt-repository ppa:graphics-drivers/ppa
答案2
提供 xorg-vide-abi-* 的软件包是 xserver-xorg-core(2:1.19.6-ubuntu4.2),但保留的软件包是 xserver-xorg-core(2:1.20*),并且不再提供必要的 xerver-xorg-core 软件包
因此,降级该软件包有效,并sudo apt-mark hold xserver-xorg-core
在升级时忽略该软件包()即可。