Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot
found 601962 linux-2.6/3.1.6-1 tags 601962 + patch quit Lucas Nussbaum wrote: But I found out that the problem is that I get into the $running eq $version test, but I use the debconf non-interactive frontend. So I don't see the question about removing the running kernel image, but the script exits with 1. It would be nice to display an error message, like: if ($answer =~ /^(y|t)/i) { +print STDERR Aborting the removal of the running kernel image.\n; exit 1; #Operation not permitted } else { print STDERR Ok, proceeding with removing running kernel image.\n; } Yes, I agree. Patch follows. Index: debian/changelog === --- debian/changelog(révision 18419) +++ debian/changelog(copie de travail) @@ -1,3 +1,11 @@ +linux-2.6 (3.1.6-2) UNRELEASED; urgency=low + + [ Jonathan Nieder ] + * prerm: Print an error message when aborting removal of the running +kernel (Closes: #601962) + + -- Jonathan Nieder jrnie...@gmail.com Sat, 24 Dec 2011 05:17:47 -0600 + linux-2.6 (3.1.6-1) unstable; urgency=low * New upstream stable update: Index: debian/templates/temp.image.plain/prerm === --- debian/templates/temp.image.plain/prerm (révision 18419) +++ debian/templates/temp.image.plain/prerm (copie de travail) @@ -109,6 +109,7 @@ die Error retreiving answer for $question: $answer if $ret; if ($answer =~ /^(y|t)/i) { +print STDERR Aborting removal of running kernel image.\n; exit 1; #Operation not permitted } else { -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20111224112106.GA24323@elie.Belkin
Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot
Package: linux-image-2.6.32-5-amd64 Version: 2.6.32-26 Severity: serious Hi, Removing linux-image-2.6.32-5-amd64 in a clean chroot fails: # apt-get remove --purge linux-image-2.6.32-5-amd64 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-2.6.32-5-amd64* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 99.0 MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 9662 files and directories currently installed.) Removing linux-image-2.6.32-5-amd64 ... dpkg: error processing linux-image-2.6.32-5-amd64 (--purge): subprocess installed pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: linux-image-2.6.32-5-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) - Lucas -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101031114655.ga8...@xanadu.blop.info
Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot
On Sun, Oct 31, 2010 at 12:46:55 +0100, Lucas Nussbaum wrote: Removing linux-image-2.6.32-5-amd64 in a clean chroot fails: # apt-get remove --purge linux-image-2.6.32-5-amd64 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-2.6.32-5-amd64* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 99.0 MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 9662 files and directories currently installed.) Removing linux-image-2.6.32-5-amd64 ... dpkg: error processing linux-image-2.6.32-5-amd64 (--purge): subprocess installed pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: linux-image-2.6.32-5-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) Any chance you can test that with set -x? Cheers, Julien signature.asc Description: Digital signature
Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot
severity 601962 important thanks On 31/10/10 at 15:58 +0100, Julien Cristau wrote: On Sun, Oct 31, 2010 at 12:46:55 +0100, Lucas Nussbaum wrote: Removing linux-image-2.6.32-5-amd64 in a clean chroot fails: # apt-get remove --purge linux-image-2.6.32-5-amd64 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-2.6.32-5-amd64* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 99.0 MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 9662 files and directories currently installed.) Removing linux-image-2.6.32-5-amd64 ... dpkg: error processing linux-image-2.6.32-5-amd64 (--purge): subprocess installed pre-removal script returned error exit status 1 configured to not write apport reports Errors were encountered while processing: linux-image-2.6.32-5-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) Any chance you can test that with set -x? Not really, since it's perl;) But I found out that the problem is that I get into the $running eq $version test, but I use the debconf non-interactive frontend. So I don't see the question about removing the running kernel image, but the script exits with 1. It would be nice to display an error message, like: if ($answer =~ /^(y|t)/i) { +print STDERR Aborting the removal of the running kernel image.\n; exit 1; #Operation not permitted } else { print STDERR Ok, proceeding with removing running kernel image.\n; } - Lucas -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101031161746.ga15...@xanadu.blop.info
Processed: Re: Bug#601962: linux-image-2.6.32-5-amd64: removal fails in a clean chroot
Processing commands for cont...@bugs.debian.org: severity 601962 important Bug #601962 [linux-image-2.6.32-5-amd64] linux-image-2.6.32-5-amd64: removal fails in a clean chroot Severity set to 'important' from 'serious' thanks Stopping processing here. Please contact me if you need assistance. -- 601962: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601962 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/handler.s.c.128854325612341.transcr...@bugs.debian.org