Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Linux Header and Images errors when running apt upgrade, autoremove, install.

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
zagan
Posts: 2
Joined: 2021-10-13 17:57

Linux Header and Images errors when running apt upgrade, autoremove, install.

#1 Post by zagan »

Hi! First time posting

About a year ago I installed Debian10 on mi laptop (dell G3 15), ran into a lot of problems (no GUI, no desktop, etc...) on installation and ended up following some recommendations I found online - can't remember what nor where - and upgraded firmware, installed nonfree firmware, and I believe I updated kernel (I have 4.9.something before, now I'm running on 5.10.0-8). After correcting that and installing and removing several times the Nvidia drivers, I've been running into the same errors everytime I install and upgrade things on my system. Everything works fine right now, I managed to make almost everything worked fine, upgraded to Debian 11 and now everything works fine, but I still run into the same errors when I use apt install, autoremove or upgrade. This is what happens when I use autoremove, for example:

Code: Select all

Leyendo lista de paquetes...
Creando árbol de dependencias...
Leyendo la información de estado...
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
6 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
Configurando linux-headers-5.10.0-9-amd64 (5.10.70-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-9-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-5.10.0-9-amd64.postinst line 11.
dpkg: error al procesar el paquete linux-headers-5.10.0-9-amd64 (--configure):
 el subproceso instalado paquete linux-headers-5.10.0-9-amd64 script post-installation devolvió el código de salida de error 1
Configurando linux-image-5.10.0-8-amd64 (5.10.46-5) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-8-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error al procesar el paquete linux-image-5.10.0-8-amd64 (--configure):
 el subproceso instalado paquete linux-image-5.10.0-8-amd64 script post-installation devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de linux-headers-amd64:
 linux-headers-amd64 depende de linux-headers-5.10.0-9-amd64 (= 5.10.70-1); sin embargo:
 El paquete `linux-headers-5.10.0-9-amd64' no está configurado todavía.

dpkg: error al procesar el paquete linux-headers-amd64 (--configure):
 problemas de dependencias - se deja sin configurar
Configurando linux-headers-5.10.0-8-amd64 (5.10.46-5) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-8-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-5.10.0-8-amd64.postinst line 11.
dpkg: error al procesar el paquete linux-headers-5.10.0-8-amd64 (--configure):
 el subproceso instalado paquete linux-headers-5.10.0-8-amd64 script post-installation devolvió el código de salida de error 1
Configurando linux-image-5.10.0-9-amd64 (5.10.70-1) ...
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-9-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-9-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error al procesar el paquete linux-image-5.10.0-9-amd64 (--configure):
 el subproceso instalado paquete linux-image-5.10.0-9-amd64 script post-installation devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de linux-image-amd64:
 linux-image-amd64 depende de linux-image-5.10.0-9-amd64 (= 5.10.70-1); sin embargo:
 El paquete `linux-image-5.10.0-9-amd64' no está configurado todavía.

dpkg: error al procesar el paquete linux-image-amd64 (--configure):
 problemas de dependencias - se deja sin configurar
Se encontraron errores al procesar:
 linux-headers-5.10.0-9-amd64
 linux-image-5.10.0-8-amd64
 linux-headers-amd64
 linux-headers-5.10.0-8-amd64
 linux-image-5.10.0-9-amd64
 linux-image-amd64
Same error on upgrade and install, with whatever I install. I did notice some references to a file on nvidia/430.09; the directory does exist, however I do not have that nvidia driver version installed (currenlty running on 460.91.03). I did have 430.09 on Debian 10, I removed it becuase I couldn't get dual screen to work and installed 460 through backports, and still didn't work untill I upgraded to Debian 11 and installed from the normal repository. I'm running Debian 11 on kernel 5.10.0-8.

Code: Select all

zagan@Zagan:~$ uname -a
Linux Zagan 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 GNU/Linux
As far as I know, there is now remnant of nvidia 430.09.

Code: Select all

glx-alternative-nvidia/stable,now 1.2.0 amd64 [instalado, automático]
libegl-nvidia0/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libgl1-nvidia-glvnd-glx/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libgles-nvidia1/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libgles-nvidia2/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libglx-nvidia0/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-cbl/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-cfg1/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-eglcore/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-encode1/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-glcore/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-glvkspirv/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-ml1/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-ptxjitcompiler1/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
libnvidia-rtcore/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-alternative/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-driver-bin/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-driver-libs/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-driver/stable,stable,now 460.91.03-1 amd64 [instalado]
nvidia-egl-common/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-egl-icd/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-installer-cleanup/stable,now 20151021+13 amd64 [instalado, automático]
nvidia-kernel-common/stable,now 20151021+13 amd64 [instalado, automático]
nvidia-kernel-dkms/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-kernel-support/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-legacy-check/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-modprobe/stable,now 460.32.03-1 amd64 [instalado, automático]
nvidia-persistenced/stable,now 460.32.03-1 amd64 [instalado, automático]
nvidia-settings/stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-smi/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-support/stable,now 20151021+13 amd64 [instalado, automático]
nvidia-vdpau-driver/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-vulkan-common/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
nvidia-vulkan-icd/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
xserver-xorg-video-nvidia/stable,stable,now 460.91.03-1 amd64 [instalado, automático]
As I said, everything is running fine right now, though I am worried that something will eventually fail or I will have problems upgrading or installing something in the future. Any idea how to correct this? I'm at a loss (kind of a noob as well)

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Linux Header and Images errors when running apt upgrade, autoremove, install.

#2 Post by bw123 »

Why can’t you just create an empty dkms.conf at the path shown so the script can finish without error?
resigned by AI ChatGPT

zagan
Posts: 2
Joined: 2021-10-13 17:57

Re: Linux Header and Images errors when running apt upgrade, autoremove, install.

#3 Post by zagan »

Hi! Sorry to take so much in getting back. As it turns out, I can't create the empty dkms.conf file in that directory because there is a file /var/lib/dkms/nvidia/430.09/source; it has no extension, and when I access it with nano its empty, still not sure if I should delete it and try to create the empty dkms.conf. Today was the first time I logged into Debian since I posted, and I actually ran into another (I supposed related) error:

----[ end Kernel panic - not syncing: UPS: Unable to mount root fs on unkown-block(0,0) ]----

I suppose it could be a result of what I tried to remove the error in the apt commands last time, I never had this problem on boot before. I believe it tried to load to kernel 5.10.0-9; manually loading to kernel 5.10.0-8 worked without an issue. I have loaded to 5.10.0-9 before, as far as I remember (maybe I'm confused? not sure though) but uname has alwaysls showed 5.10.0-8. Last time, before posting, I tried running: apt autoremove, apt -f install, apt--fix-missing update, apt-get autoclean, apt update --fix-missing, dpkg --configure -a, apt --fix-broken install, updateinitramfs, dpkg --configure --linux-image-5.10.0-8-amd64 (also with 5.10.0-9); for example:

Code: Select all

zagan@Zagan:~$ sudo dpkg --configure linux-image-5.10.0-8-amd64
Configurando linux-image-5.10.0-8-amd64 (5.10.46-5) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-8-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error al procesar el paquete linux-image-5.10.0-8-amd64 (--configure):
 el subproceso instalado paquete linux-image-5.10.0-8-amd64 script post-installation devolvió el código de salida de error 1
Se encontraron errores al procesar:
 linux-image-5.10.0-8-amd64
zagan@Zagan:~$ sudo dpkg --configure linux-image-5.10.0-9-amd64
Configurando linux-image-5.10.0-9-amd64 (5.10.70-1) ...
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-9-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-9-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.09/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error al procesar el paquete linux-image-5.10.0-9-amd64 (--configure):
 el subproceso instalado paquete linux-image-5.10.0-9-amd64 script post-installation devolvió el código de salida de error 1
Se encontraron errores al procesar:
 linux-image-5.10.0-9-amd64
Nothing worked, I kept running into similar errors with the apt and dpkg commands and updateinitramfs resulted in no error.

On this boot, after receiving the new error, lsinitramfs also returns an error (it didn't use to):

Code: Select all

zagan@Zagan:~$ sudo lsinitramfs initrd.img-5.10.0-8-amd64
/usr/bin/unmkinitramfs: 64: cannot open initrd.img-5.10.0-8-amd64: No such file
/usr/bin/unmkinitramfs: 57: cannot open initrd.img-5.10.0-8-amd64: No such file
/usr/bin/unmkinitramfs: 38: cannot open initrd.img-5.10.0-8-amd64: No such file
cpio: fin prematuro del archivo
Same error with 5.10.0-9. System still working fine on 5.10.0-8 though, haven't tried restarting it or anything. I'm really at a lost with this.

Post Reply