Kubuntu 20.04 and 20.10 updated
Пробовал две операционки, на обоих ошибки, которые будут описаные ниже.
Для установки nvidia-cuda-toolkit использовал
эту инструкцию. Если устанавливать с помощью:
sudo apt install nvidia-cuda-toolkit
, то получаем ошибку:
semen@semen-PC:~$ sudo apt install nvidia-cuda-toolkit
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:
nvidia-cuda-toolkit : Depends: nvidia-profiler (= 10.1.243-3) but it is not going to be installed
Depends: nvidia-cuda-dev (= 10.1.243-3) but it is not going to be installed
Recommends: nvidia-visual-profiler (= 10.1.243-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Если устнавливать, добавляя репозиторий и набирая:
sudo apt install cuda
, то вывод завершается без единой ошибки, но после перезагрузки система не загружается (хотя можно войти в режиме восстановления, чтобы попытаться переустановить видео драйвер).
Попытка переустановить видео- драйвер в режиме восстановления:В пакетном менеджере
Disciver, на вкладке
Additional drivers выбрано залоченное значение: "Continue using a manualy installing driver". А установка с помощью терминала приводит к ошибке:
semen@semen-PC:~$ 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-390-generic-hwe-20.04 : Depends: nvidia-kernel-common-390 (<= 390.138-1) but it is not going to be installed
Depends: nvidia-kernel-common-390 (>= 390.138) but it is not going to be installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: nvidia-kernel-common-390 (<= 390.138-1) but it is not going to be installed
Depends: nvidia-kernel-common-390 (>= 390.138) but it is not going to be installed
Depends: nvidia-kernel-source-390 (= 390.138-0ubuntu0.20.04.1)
Depends: nvidia-compute-utils-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-decode-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-encode-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-cfg1-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-fbc1-390 (= 390.138-0ubuntu0.20.04.1) but it is not going to be installed
Recommends: libnvidia-compute-390:i386 (= 390.138-0ubuntu0.20.04.1)
Recommends: libnvidia-decode-390:i386 (= 390.138-0ubuntu0.20.04.1)
Recommends: libnvidia-encode-390:i386 (= 390.138-0ubuntu0.20.04.1)
Recommends: libnvidia-ifr1-390:i386 (= 390.138-0ubuntu0.20.04.1)
Recommends: libnvidia-fbc1-390:i386 (= 390.138-0ubuntu0.20.04.1)
Recommends: libnvidia-gl-390:i386 (= 390.138-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.
Восстанавливать систему мне не нужно: есть образ, созданный Clonezilla. Нужно хоть на какой- то операционке поставить cuda- toolkit (для экспериментов).
Что посоветуете?
Пользователь добавил сообщение 25 Октября 2020, 14:18:11:
Выяснил в чем проблема (следите за мыслью!): версия видеокарты определяет версию драйвера, версия драйвера определяет версию
nvidia cuda toolkit, версия
nvidia cuda toolkit определяет версию ОС, под которой он будет корректно работать. Например, для моей GTX 560 ti если пройти всю цепочку зависимостей, то надо ставить Ubuntu 16.04 или Ubuntu 17.04 (иначе вылазят ошибки при установке).
Короче, хочешь на современной ОС рабоать с cuda- должен иметь новую видеокарту.