Greetings to all. I don't know if this will be the right place to make my query. If not, please tell me where to relocate it. My dedicated server is located at OVH. Debian 12. ISPConfig Version: 3.2.11 Everything works perfectly, except when I try to update the operating system. Code: initramfs-tools post-installation script returned error exit code 1. Code: Linux server.myweb.com 4.4.30-mod-std-ipv6-64 #9 SMP Tue Nov 1 17:58:26 CET 2016 x86_64 Linux server.myweb.com 4.4.30-mod-std-ipv6-64 #9 SMP Tue Nov 1 17:58:26 CET 2016 x86_64 GNU/Linux server : 750280 ip : 51.176.71.112 hostname : server.myweb.com Last login: Fri Oct 20 22:23:41 2023 from 91.128.255.32 myuser@server:~$ su - Contraseña: root@server:~# apt-get update Obj:1 http://ftp.debian.org/debian bookworm-backports InRelease Obj:2 http://deb.debian.org/debian bookworm InRelease Obj:3 http://security.debian.org/debian-security bookworm-security InRelease Obj:4 http://deb.debian.org/debian bookworm-updates InRelease Obj:5 https://packages.sury.org/php bookworm InRelease Leyendo lista de paquetes... Hecho root@server:~# apt-get upgrade Leyendo lista de paquetes... Hecho Creando árbol de dependencias... Hecho Leyendo la información de estado... Hecho Calculando la actualización... Hecho 0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados. 1 no instalados del todo o eliminados. Se utilizarán 0 B de espacio de disco adicional después de esta operación. ¿Desea continuar? [S/n] Configurando initramfs-tools (0.142) ... update-initramfs: deferring update (trigger activated) Procesando disparadores para initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-4.4.30-mod-std-ipv6-64 grep: /boot/config-4.4.30-mod-std-ipv6-64: No existe el fichero o el directorio E: gzip compression (CONFIG_RD_GZIP) not supported by kernel update-initramfs: failed for /boot/initrd.img-4.4.30-mod-std-ipv6-64 with 1. dpkg: error al procesar el paquete initramfs-tools (--configure): el subproceso instalado paquete initramfs-tools script post-installation devolvió el código de salida de error 1 Se encontraron errores al procesar: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) root@server:~# The problem is not due to lack of space in the /boot folder Code: root@server:~# df -h S.ficheros Tamaño Usados Disp Uso% Montado en udev 32G 0 32G 0% /dev tmpfs 6,3G 3,2M 6,3G 1% /run /dev/md2 20G 4,2G 15G 23% / tmpfs 32G 1,2M 32G 1% /dev/shm tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 4,0M 0 4,0M 0% /sys/fs/cgroup /dev/nvme0n1p1 510M 5,9M 505M 2% /boot/efi /dev/md3 20G 45M 19G 1% /home /dev/md5 372G 141G 213G 40% /var /dev/md0 3,6T 821G 2,6T 24% /scct tmpfs 6,3G 0 6,3G 0% /run/user/1000 root@server:~# The problem is caused because the file /boot/config-4.4.30-mod-std-ipv6-64 does not exist Code: root@server:/boot# ls -las total 23616 4 drwxr-xr-x 4 root root 4096 oct 21 20:51 . 4 drwxr-xr-x 19 root root 4096 oct 21 00:09 .. 8740 -rw-r--r-- 1 root root 8946080 mar 24 2017 bzImage-4.4.30-mod-std-ipv6-64 4 drwxr-xr-x 3 root root 4096 ene 1 1970 efi 4 drwxr-xr-x 6 root root 4096 oct 7 06:01 grub 10444 -rw-r--r-- 1 root root 10691852 sep 10 11:44 initrd.img-4.4.30-mod-std-ipv6-64 4416 -rw-r--r-- 1 root root 4521947 mar 24 2017 System.map-4.4.30-mod-std-ipv6-64 root@server:/boot# I have no idea how to solve it. Could you help me? Thank you.
I do not understand spanish, so please show output of these commands to get error messages in english: Code: LANG=C apt update LANG=C apt upgrade LANG=C apt full-upgrade -y LANG=C apt policy initramfs-tools You might get better answers from Debian mailing list, I think there is even a spanish version.
Thanks for your help. Here is the server's response. Code: root@server:~# LANG=C apt update Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian bookworm-updates InRelease Hit:3 http://security.debian.org/debian-security bookworm-security InRelease Hit:4 http://ftp.debian.org/debian bookworm-backports InRelease Hit:5 https://packages.sury.org/php bookworm InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. root@server:~# LANG=C apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up initramfs-tools (0.142) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-4.4.30-mod-std-ipv6-64 grep: /boot/config-4.4.30-mod-std-ipv6-64: No such file or directory E: gzip compression (CONFIG_RD_GZIP) not supported by kernel update-initramfs: failed for /boot/initrd.img-4.4.30-mod-std-ipv6-64 with 1. dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) root@server:~# LANG=C apt full-upgrade -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initramfs-tools (0.142) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-4.4.30-mod-std-ipv6-64 grep: /boot/config-4.4.30-mod-std-ipv6-64: No such file or directory E: gzip compression (CONFIG_RD_GZIP) not supported by kernel update-initramfs: failed for /boot/initrd.img-4.4.30-mod-std-ipv6-64 with 1. dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) root@server:~# LANG=C apt policy initramfs-tools initramfs-tools: Installed: 0.142 Candidate: 0.142 Version table: *** 0.142 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages 100 /var/lib/dpkg/status root@server:~#
What show commands Code: LANG=C dpkg --print-architecture LANG=C dpkg -l | egrep '(binutils-|linux-)'
Here are the data. Code: LANG=C dpkg --print-architecture amd64 LANG=C dpkg -l | egrep '(binutils-|linux-)' ii binutils-common:amd64 2.40-2 amd64 Common files for the GNU assembler, linker and binary utilities ii binutils-x86-64-linux-gnu 2.40-2 amd64 GNU binary utilities, for x86-64-linux-gnu target ii linux-base 4.9 all Linux image base package ii linux-libc-dev:amd64 6.1.55-1 amd64 Linux support headers for userspace development ii util-linux-extra 2.38.1-5+b1 amd64 interactive login tools ii util-linux-locales 2.38.1-5 all locales files for util-linux
Host has amd64 architecture, so no strange processor. But now I notice running kernel seems oldish for Debian 12. What shows Code: uname -a cat /etc/debian_version Was this host upgraded from older Debian release to Debian 12? Maybe OS was upgraded but is still running the old kernel? That might cause problem like you are experiencing.
Code: uname -a Linux server.myweb.com 4.4.30-mod-std-ipv6-64 #9 SMP Tue Nov 1 17:58:26 CET 2016 x86_64 GNU/Linux cat /etc/debian_version 12.2 Thanks Taleman. Indeed, about 20 days ago I upgraded the server from Debian 11 to Debian 12. The update was correct, there were no warning or error messages. All server services work perfectly. In fact, during this period, I have run apt-get update && apt-get upgrade several times and everything worked correctly, until the error occurred unexpectedly.
That kernel version is from maybe Debian 9. I guess you have not followed Debian Release Manual instructions on how to do the dist-upgrade? Also the kernel version string is strange, 4.4.30-mod-std-ipv6-64. Have you installed Debian on this host yourself or did it come with Linux installed when you rented it? I would say the problem comes from running old kernel on Debian 12, but I would first ask the support from where you got that server on how to solve this. Maybe they provide a newer kernel for Debian 12? If not, and if all else fails, after taking backups try kernel upgrade instructions from Debian 12 release notes: https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#newkernel
Thank you again for your time. Indeed, all your indications point correctly to the problem. The server is from OVH, it was installed on March 26, 2017 and started from the Debian 8 version. I have updated the version server thanks to the How to Upgrade Debian XX that are available here. These tutorials do not refer to the need to update the kernel. I had always understood that this process was carried out during the same Debian version update process, but now I see that this is not the case. I'm going to contact OVH support and tell them the problem to see if they can solve it, although I don't have much hope that they will be able to provide a solution. My last option is to follow your instructions to update the kernel and its packages by following the steps in the link you provided me. I will report in this thread if the operation was a success or if the server are really ready to format.
I guess the problem in your case might indeed be related to OVH, as standard Linux Kernels tend to get updated on dist upgrade automatically, that#s why there are no further instructions in the dist upgrade guides. And as @Taleman notes, kernel name looks a bit strange, so my guess is that this is a custom Kernel from OVH, and for this reason, it also did not upgrade automatically.
Thanks till. I have already left a support ticket at OVH asking them to provide a standard Kernel. Let's see what they answer me!
To resolve the issue with initramfs-tools on your Debian server, try the following steps: Reinstall the Kernel: apt-get install --reinstall linux-image-4.4.30-mod-std-ipv6-64 Generate the Configuration File: zcat /proc/config.gz > /boot/config-$(uname -r) Update initramfs: update-initramfs -u -k $(uname -r) Reconfigure the Package: dpkg --configure -a Check for Errors: Look for specific error logs: cat /var/log/syslog | grep initramfs If the problem persists after these steps, you may need further assistance from OVH support or the Debian community.
@lukafred, why are you posting that message? Do you have reason to believe reinstalling kernel would solve the original problem? Furthermore, this thread is a year old, maybe no new solution is needed.