[Bug 272885] [NEW] linux-image package must depend on package grub

Launchpad Bug Tracker 272885 at bugs.launchpad.net
Thu Oct 2 23:29:49 UTC 2008

You have been subscribed to a public bug:

After installing linux-image-2.6.27-3-generic (i.e. upgrading the kernel
to the latest) from an install of Intrepid Alpha 5, I tried to remove
the 2.6.27-2 image:

$ sudo apt-get purge linux-image-2.6.27-2-generic
Reading package lists... Done                                 
Building dependency tree                                      
Reading state information... Done                             
The following packages will be REMOVED:                       
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 96.0MB disk space will be freed.        
Do you want to continue [Y/n]? y                              
(Reading database ... 109912 files and directories currently installed.)
Removing linux-image-2.6.27-2-generic ...                               
Examining /etc/kernel/prerm.d.                                          
run-parts: executing /etc/kernel/prerm.d/last-good-boot                 
/etc/kernel/prerm.d/last-good-boot: 3: /usr/sbin/kernel-helper: not found
run-parts: /etc/kernel/prerm.d/last-good-boot exited with return code 127
Failed to process /etc/kernel/prerm.d at /var/lib/dpkg/info/linux-image-2.6.27-2-generic.prerm line 267.
dpkg: error processing linux-image-2.6.27-2-generic (--purge):                                          
 subprocess pre-removal script returned error exit status 2                                             
Errors were encountered while processing:                                                               
E: Sub-process /usr/bin/dpkg returned an error code (1)

I found out that the reason is that I had installed grub2 (just for
testing) which removed grub which apparently provides this kernel-helper
file. After installing grub (which removed grub2) the purge proceeded

This must mean, I believe, that the package linux-image (or some other
such package) must depend on grub, but it does not, since I was allow to
uninstall grub.

Please look at the situation and find a solution.

** Affects: linux-meta (Ubuntu)
     Importance: Undecided
         Status: New

linux-image package must depend on package grub
You received this bug notification because you are a member of Kernel Bugs, which is subscribed to linux-meta in ubuntu.

More information about the kernel-bugs mailing list