
Hace aproximadamente una semana o dos intenté actualizar mi kernel, lo que por cierto rompió mis controladores NVIDIA de alguna manera. En cada inicio recibía el mensaje "Módulo NVIDIA Kernel roto. Volviendo a nouveau" o algo parecido. Lo busqué y varias fuentes me dijeron que sudo dnf update --refresh, pero al hacerlo me dio:
Problem 1: package xorg-x11-drv-nvidia-power-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires xorg-x11-drv-nvidia(x86-64) = 3:550.67, but none of the providers can be installed
- cannot install the best update candidate for package xorg-x11-drv-nvidia-power-3:550.54.14-1.fc39.x86_64
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Problem 2: package akmod-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
- cannot install the best update candidate for package akmod-nvidia-3:535.129.03-1.fc39.x86_64
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Problem 3: package nvidia-kmod-common-3:550.54.15-1.fc39.noarch from cuda-fedora39-x86_64 requires nvidia-kmod = 3:550.54.15, but none of the providers can be installed
- package nvidia-driver-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 requires nvidia-kmod-common = 3:550.54.15, but none of the providers can be installed
- package kmod-nvidia-open-dkms-3:550.54.14-1.fc39.x86_64 from @System conflicts with kmod-nvidia-latest-dkms provided by kmod-nvidia-latest-dkms-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64
- cannot install the best update candidate for package xorg-x11-drv-nvidia-3:550.54.14-1.fc39.x86_64
- cannot install the best update candidate for package kmod-nvidia-open-dkms-3:550.54.14-1.fc39.x86_64
- package kmod-nvidia-open-dkms-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 is filtered out by modular filtering
Problem 4: package xorg-x11-drv-nvidia-power-3:550.54.14-1.fc39.x86_64 from @System requires xorg-x11-drv-nvidia(x86-64) = 3:550.54.14, but none of the providers can be installed
- package xorg-x11-drv-nvidia-3:550.54.14-1.fc39.x86_64 from @System requires nvidia-modprobe(x86-64) = 3:550.54.14, but none of the providers can be installed
- problem with installed package xorg-x11-drv-nvidia-power-3:550.54.14-1.fc39.x86_64
- cannot install both nvidia-modprobe-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 and nvidia-modprobe-3:550.54.14-1.fc39.x86_64 from @System
- cannot install both nvidia-modprobe-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 and nvidia-modprobe-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64
- package xorg-x11-drv-nvidia-power-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires xorg-x11-drv-nvidia(x86-64) = 3:550.67, but none of the providers can be installed
- package xorg-x11-drv-nvidia-power-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates requires xorg-x11-drv-nvidia(x86-64) = 3:550.67, but none of the providers can be installed
- cannot install the best update candidate for package nvidia-modprobe-3:550.54.14-1.fc39.x86_64
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Problem 5: problem with installed package akmod-nvidia-3:535.129.03-1.fc39.x86_64
- package akmod-nvidia-3:535.129.03-1.fc39.x86_64 from @System requires xorg-x11-drv-nvidia-kmodsrc = 3:535.129.03, but none of the providers can be installed
- package akmod-nvidia-3:535.129.03-1.fc39.x86_64 from rpmfusion-nonfree requires xorg-x11-drv-nvidia-kmodsrc = 3:535.129.03, but none of the providers can be installed
- cannot install both xorg-x11-drv-nvidia-kmodsrc-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver and xorg-x11-drv-nvidia-kmodsrc-3:535.129.03-2.fc39.x86_64 from @System
- cannot install both xorg-x11-drv-nvidia-kmodsrc-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver and xorg-x11-drv-nvidia-kmodsrc-3:535.129.03-2.fc39.x86_64 from rpmfusion-nonfree
- package akmod-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
- package akmod-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
- cannot install the best update candidate for package xorg-x11-drv-nvidia-kmodsrc-3:535.129.03-2.fc39.x86_64
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Problem 6: problem with installed package kmod-nvidia-open-dkms-3:550.54.14-1.fc39.x86_64
- package kmod-nvidia-open-dkms-3:550.54.14-1.fc39.x86_64 from @System requires nvidia-kmod-common = 3:550.54.14, but none of the providers can be installed
- package kmod-nvidia-open-dkms-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64 requires nvidia-kmod-common = 3:550.54.14, but none of the providers can be installed
- package nvidia-kmod-common-3:550.54.14-1.fc39.noarch from cuda-fedora39-x86_64 requires nvidia-driver = 3:550.54.14, but none of the providers can be installed
- cannot install both nvidia-driver-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 and nvidia-driver-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64
- package xorg-x11-drv-nvidia-3:550.54.14-1.fc39.x86_64 from @System requires nvidia-settings(x86-64) = 3:550.54.14, but none of the providers can be installed
- package nvidia-settings-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 requires nvidia-driver(x86-64) = 3:550.54.15, but none of the providers can be installed
- cannot install both nvidia-settings-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 and nvidia-settings-3:550.54.14-1.fc39.x86_64 from @System
- cannot install both nvidia-settings-3:550.54.15-1.fc39.x86_64 from cuda-fedora39-x86_64 and nvidia-settings-3:550.54.14-1.fc39.x86_64 from cuda-fedora39-x86_64
- cannot install the best update candidate for package nvidia-settings-3:550.54.14-1.fc39.x86_64
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
kmod-nvidia-latest-dkms x86_64 3:550.54.15-1.fc39 cuda-fedora39-x86_64 40 M
nvidia-driver x86_64 3:550.54.14-1.fc39 cuda-fedora39-x86_64 126 M
nvidia-driver x86_64 3:550.54.15-1.fc39 cuda-fedora39-x86_64 126 M
nvidia-modprobe x86_64 3:550.54.15-1.fc39 cuda-fedora39-x86_64 30 k
nvidia-settings x86_64 3:550.54.15-1.fc39 cuda-fedora39-x86_64 822 k
xorg-x11-drv-nvidia-kmodsrc x86_64 3:550.67-1.fc39 rpmfusion-nonfree-nvidia-driver 44 M
Skipping packages with broken dependencies:
akmod-nvidia x86_64 3:550.67-1.fc39 rpmfusion-nonfree-updates 40 k
nvidia-kmod-common noarch 3:550.54.14-1.fc39 cuda-fedora39-x86_64 12 k
nvidia-kmod-common noarch 3:550.54.15-1.fc39 cuda-fedora39-x86_64 12 k
xorg-x11-drv-nvidia-power x86_64 3:550.67-1.fc39 rpmfusion-nonfree-nvidia-driver 103 k
Transaction Summary
==============================================================================================================================================================================================================
Skip 10 Packages
Nothing to do.
Complete!
Hice lo que decía e intenté agregar --best --allowerasing
Problem 1: cannot install the best update candidate for package xorg-x11-drv-nvidia-power-3:550.54.14-1.fc39.x86_64
- problem with installed package xorg-x11-drv-nvidia-power-3:550.54.14-1.fc39.x86_64
- package xorg-x11-drv-nvidia-power-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires xorg-x11-drv-nvidia(x86-64) = 3:550.67, but none of the providers can be installed
- package xorg-x11-drv-nvidia-power-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates requires xorg-x11-drv-nvidia(x86-64) = 3:550.67, but none of the providers can be installed
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
Problem 2: problem with installed package akmod-nvidia-3:535.129.03-1.fc39.x86_64
- cannot install the best update candidate for package akmod-nvidia-3:535.129.03-1.fc39.x86_64
- package akmod-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
- package akmod-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-nvidia-driver is filtered out by modular filtering
- package xorg-x11-drv-nvidia-3:550.67-1.fc39.x86_64 from rpmfusion-nonfree-updates is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages)
Hago todo esto porque desde que se rompió el Kernel, no he podido ejecutar ningún código CUDA. Intenté ejecutar el ejemplo de Vector Addition de NVIDIA y obtuve este error:
Failed to allocate device vector A (error code system has unsupported display driver / cuda driver combination)!
Si intento ejecutar mi propio programa CUDA de salida vectorial, solo genera 0. No hace falta decir que CUDA no funciona. Revisé mi CUDA Toolkit e incluso lo reinstalé, así que debería estar bien. Por lo que sé, es posible que ni siquiera esté en el estadio de lo que debería hacer para solucionar este problema. El objetivo final es que mi código CUDA vuelva a funcionar.
Cosas que probé:
- Reinstalación del kit de herramientas CUDA
- actualización de sudo dnf --actualizar
- actualización de sudo dnf --refresh --best --allowerasing
- Firmando el módulo del kernel de NVIDIA (no recuerdo dónde, pero en algún lugar dijeron que lo probara, seguíesta guía)
- Reinstalar completamente los controladores (medianteesta guía)
- Revertir a un kernel más antiguo (esto funcionó por un tiempo pero eventualmente también se rompió de la misma manera, además prefiero no quedarme atrapado en un kernel más antiguo si puedo solucionar el problema)
Casi todos estos no tuvieron ningún efecto.
Respuesta1
Opción 1
Si algunos de sus paquetes tienen dependencias no satisfechas, la actualización se negará a continuar hasta que la ejecute nuevamente con una
--allowerasing
opción adicional.Esto sucede a menudo con paquetes instalados desde repositorios de terceros para los cuales aún no se han publicado repositorios actualizados.Estudie el resultado con mucha atención y examine qué paquetes se eliminarán. Ninguno de ellos debería ser esencial para la funcionalidad del sistema, pero algunos pueden ser importantes para su productividad.
- En caso de dependencias no satisfechas, a veces puedes ver más detalles si agregas la opción --best a la línea de comando.
- Si desea eliminar/instalar algunos paquetes manualmente antes de ejecutarlos
dnf system-upgrade download
nuevamente, es recomendable realizar esas operaciones con--setopt=keepcache=1
la opción de línea de comando dnf. De lo contrario, se eliminará todo el caché del paquete después de la operación y deberá descargar todos los paquetes una vez más.
https://fedoraproject.org/wiki/DNF_system_upgrade
opcion 2
sudo dnf limpia dbcache
Elimina los archivos de caché generados a partir de los metadatos del repositorio. Esto obliga a DNF a regenerar los archivos de caché la próxima vez que se ejecute. sudo dnf clean expire-cache
Marca los metadatos del repositorio caducados. DNF volverá a validar el caché de cada repositorio la próxima vez que se utilice. sudo dnf limpiar metadatos
Elimina los metadatos del repositorio. Esos son los archivos que utiliza DNF para determinar la disponibilidad remota de paquetes. El uso de esta opción hará que DNF descargue todos los metadatos la próxima vez que se ejecute.
sudo dnf --refresh instalarcontrolador nvidia