[Bug 347532] Re: [jaunty] package grub-pc 1.96+20080724-12ubuntu2 failed to install/upgrade: sub-process pre-removal script returned 10
Stefan
347532 at bugs.launchpad.net
Tue Feb 2 08:33:13 UTC 2021
Just had exactly that problem on a 18.04 installation at the end.
It was a EFI installation and grub wanted to remove "grub-pc".
As described above, the prerm script tried to db_get the variable
grub-pc/chainload_from_menu.lst.
grub-pc version is the latest from bionic-update (2.04-1ubuntu35.2).
-- prerm ------
#!/bin/bash
set -e
case "$1" in
remove|deconfigure)
. /usr/share/debconf/confmodule
db_get grub-pc/chainload_from_menu.lst <---- here the scripts aborts
if $RET && test -e /boot/grub/menu.lst ; then
...
---------------
Because of "set -e", the scripts aborts when the variable is not
available.
Looking into grub-pc's config script, i find this:
db_input high grub-pc/chainload_from_menu.lst || true
Maybe this would be a good improvement for the prerm script?
The only workaround I think of, is to preseed that variable, hoping it
doesn't harm anything.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/347532
Title:
[jaunty] package grub-pc 1.96+20080724-12ubuntu2 failed to
install/upgrade: sub-process pre-removal script returned 10
Status in grub2 package in Ubuntu:
Invalid
Bug description:
Binary package hint: grub2
I had neither menu.lst nor grub.cfg anywhere on my traditional-styls ext2 boot partition.
Wanted to check out grub2, could not change kernel lines in menu.lst or grub.cfg, wanted to switch back to grub.
On next alternate install will use traditional grub.... given, there will be the option to select it on the mini.iso...
ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: Unterprozess pre-removal script gab den Fehlerwert 10 zurück
NonfreeKernelModules: nvidia
Package: grub-pc 1.96+20080724-12ubuntu2
SourcePackage: grub2
Title: package grub-pc 1.96+20080724-12ubuntu2 failed to install/upgrade: Unterprozess pre-removal script gab den Fehlerwert 10 zurück
Uname: Linux 2.6.28-11-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/347532/+subscriptions
More information about the foundations-bugs
mailing list