
Acabo de actualizar a ubuntu 22.04 y estoy intentando actualizar mi instalación de cuda. Sin embargo, es posible que haya logrado estropear mis paquetes. "No se pueden corregir los problemas porque tiene paquetes rotos". Es posible que haya hecho algo mal al intentar eliminar una instalación anterior.
Estoy intentando instalar cuda y cuda toolkit a través dehttps://developer.nvidia.com/, y se detiene en el último paso. Intentar instalar directamente desde apt produce el mismo error (ver más abajo).
Por favor ayuda. No estoy seguro de qué hice mal.
(base) xxx@xxx:~$ 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:
cuda-drivers-515 : Depends: nvidia-modprobe (>= 515.65.01) but 470.103.01-1 is to be installed
Depends: nvidia-settings (>= 515.65.01) but 510.47.03-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
(base) xxx@xxx:~$ apt-cache policy nvidia-modprobe
nvidia-modprobe:
Installed: 470.103.01-1
Candidate: 470.103.01-1
Version table:
515.65.01-0ubuntu1 450
450 file:/var/cuda-repo-ubuntu2204-11-7-local Packages
*** 470.103.01-1 500
500 http://fr.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
100 /var/lib/dpkg/status
(base) xxx@xxx:~$ apt-cache policy nvidia-settings
nvidia-settings:
Installed: 510.47.03-0ubuntu1
Candidate: 510.47.03-0ubuntu1
Version table:
515.65.01-0ubuntu1 450
450 file:/var/cuda-repo-ubuntu2204-11-7-local Packages
*** 510.47.03-0ubuntu1 500
500 http://fr.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
(base) xxx@xxx:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Respuesta1
No pude corregir el problema directamente con apt, pero los siguientes pasos funcionaron para solucionar mi instalación de cuda:
- Purgue todos los controladores nvidia y cuda (sudo apt remove --purge nvidia-* && sudo apt remove --purge cuda*)
- Instale cuda a través de las fuentes de Nvidia, utilizando el archivo local RUN, no el paquete deb. En la primera ejecución, instaló exitosamente el controlador nvidia, pero no pudo instalar el kit de herramientas.
- Ejecute el archivo RUN por segunda vez, simplemente seleccionando el kit de herramientas.
Estos pasos resolvieron mis problemas. Espero que ayude a alguien más.