Package: extlinux Version: 2:3.85+dfsg-1 Severity: important update-extlinux breaks any attempt to install/remove/purge kernels on several of my hosts. Attached is a transcript of an attempt to purge a kernel, after changing "set -e" to "set -ex" in update-extlinux.
AFAICT it's upset because there's no boot.txt file. -- System Information: Debian Release: squeeze/sid Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages extlinux depends on: ii libc6 2.10.2-6em1 Embedded GNU C Library: Shared lib Versions of packages extlinux recommends: ii syslinux-common 2:3.85+dfsg-1 Kernel loader which uses a FAT, ex extlinux suggests no packages. -- no debconf information
Script started on Tue 16 Mar 2010 15:13:38 EST $ aptitude search linux-image-2.6.30-2-686 c linux-image-2.6.30-2-686 - Linux 2.6.30 image on PPro/Celeron/PII/PIII/P4 $ aptitude purge linux-image-2.6.30-2-686^W^W ^C $ $ sudo aptitude purge linux-image-2.6.30-2-686 Reading package lists... 0% Reading package lists... 0% Reading package lists... 17% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree Reading state information... 0% Reading state information... 0% Reading state information... Done Reading extended state information... 0% Reading extended state information... Done Initializing package states... 0% Initializing package states... Done Writing extended state information... 0% Writing extended state information... Done The following packages will be REMOVED: linux-image-2.6.30-2-686{p} 0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Do you want to continue? [Y/n/?] Writing extended state information... 0% Writing extended state information... 1% Writing extended state information... Done (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 31126 files and directories currently installed.) Removing linux-image-2.6.30-2-686 ... Purging configuration files for linux-image-2.6.30-2-686 ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/extlinux 2.6.30-2-686 /boot/vmlinuz-2.6.30-2-686 + DEVICE=2.6.30-2-686 + echo -n P: Searching for EXTLINUX directory... + [ -e /boot/extlinux ] + DIRECTORY=/boot/extlinux + echo found: /boot/extlinux + break + [ -z /boot/extlinux ] + [ ! -e /etc/default/extlinux ] + . /etc/default/extlinux + EXTLINUX_ALTERNATIVES=default recovery + EXTLINUX_DEFAULT=0 + EXTLINUX_MENU_LABEL=Debian GNU/Linux, kernel + EXTLINUX_PARAMETERS=ro quiet + EXTLINUX_ROOT=root=LABEL=root + EXTLINUX_THEME= + EXTLINUX_TIMEOUT=50 + cat + cd /boot + sort -r + sed -e s|vmlinuz-||g + ls vmlinuz-2.6.32-3-686 vmlinuz-2.6.32-trunk-686 + VERSIONS=2.6.32-trunk-686 2.6.32-3-686 + stat --printf %d / + stat --printf %d /boot + [ 2049 = 2049 ] + BOOT=/boot + echo P: Writing config for /boot/vmlinuz-2.6.32-trunk-686... + NUMBER=0 + [ -e /boot/initrd.img-2.6.32-trunk-686 ] + INITRD=initrd=/boot/initrd.img-2.6.32-trunk-686 + grep -q default + echo default recovery + cat + grep -q live + echo default recovery + grep -q recovery + echo default recovery + cat + NUMBER=1 + echo P: Writing config for /boot/vmlinuz-2.6.32-3-686... + NUMBER=1 + [ -e /boot/initrd.img-2.6.32-3-686 ] + INITRD=initrd=/boot/initrd.img-2.6.32-3-686 + grep -q default + echo default recovery + cat + grep -q live + echo default recovery + grep -q recovery + echo default recovery + cat + NUMBER=2 + cat + [ -n ] + cat + [ -e /boot/extlinux/boot.txt ] run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.30-2-686 /boot/vmlinuz-2.6.30-2-686 dpkg: error processing linux-image-2.6.30-2-686 (--purge): subprocess installed post-removal script returned error exit status 128 Errors were encountered while processing: linux-image-2.6.30-2-686 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Reading package lists... 0% Reading package lists... 0% Reading package lists... 0% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree Reading state information... 0% Reading state information... 0% Reading state information... Done Reading extended state information... 0% Reading extended state information... Done Initializing package states... 0% Initializing package states... Done $ find /boot/extlinux -ls 358344 4 drwxr-xr-x 2 root root 4096 Feb 24 11:28 /boot/extlinux 358341 4 -rw-r--r-- 1 root root 801 Dec 18 23:38 /boot/extlinux/recovery.cfg 278008 4 -rw-r--r-- 1 root root 204 Feb 24 11:28 /boot/extlinux/options.cfg~ 278600 4 -rw-r--r-- 1 root root 245 Mar 16 15:14 /boot/extlinux/extlinux.conf 358373 4 -rw-r--r-- 1 root root 781 Dec 18 23:38 /boot/extlinux/recovery.cfg~ 358490 4 -rw-r--r-- 1 root root 1128 Mar 16 15:14 /boot/extlinux/linux.cfg 278589 4 -rw-r--r-- 1 root root 594 Jan 27 02:08 /boot/extlinux/kernel.cfg 358347 4 -rw-r--r-- 1 root root 88 Dec 18 23:33 /boot/extlinux/extlinux.conf~ 358361 16 -r--r--r-- 1 root root 14336 Dec 18 22:32 /boot/extlinux/extlinux.sys 358365 4 -rw-r--r-- 1 root root 198 Feb 24 11:28 /boot/extlinux/options.cfg $ pkg - dpkg -l extlinux Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-======================================================-======================================================-============================================================================================================================ ii extlinux 2:3.85+dfsg-1 utilities for the syslinux bootloaders (ext2/ext3 bootloader) $ Script done on Tue 16 Mar 2010 15:17:05 EST