Bug#841688: grub-pc: post-installation script fails on upgrade

Alfredo Finelli alf at computationes.de
Sat Oct 22 10:54:17 UTC 2016


Package: grub-pc
Version: 2.02~beta3-1
Severity: normal

After the usual "apt update; apt upgrade" cycle I got this error:

  dpkg: error processing package grub-pc (--configure):
   subprocess installed post-installation script returned error exit status 128
  Errors were encountered while processing:
   grub-pc
  E: Sub-process /usr/bin/dpkg returned an error code (1)

which leaves grub-pc half configured.  When trying to configure it again I
get a different exit status:

  # dpkg --configure -a
  Setting up grub-pc (2.02~beta3-1) ...
  dpkg: error processing package grub-pc (--configure):
   subprocess installed post-installation script returned error exit status 20
  Errors were encountered while processing:
   grub-pc

Best regards.





-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda1 / btrfs rw,relatime,ssd,space_cache,subvolid=257,subvol=/root.vol 0 0
/dev/mapper/lva-1 /var ext4 rw,relatime,data=ordered 0 0
/dev/mapper/lva-3 /home ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod btrfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
else
  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
fi
    font="/root.vol/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=2
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=2
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod btrfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
else
  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
fi
insmod png
if background_image /root.vol/usr/share/images/desktop-base/lines-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux, with Linux 4.7.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.0-1-amd64-advanced-2ec67375-40e5-4364-b7ed-3a055b911d92' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	echo	'Loading Linux 4.7.0-1-amd64 ...'
	linux	/root.vol/boot/vmlinuz-4.7.0-1-amd64 root=UUID=2ec67375-40e5-4364-b7ed-3a055b911d92 ro rootflags=subvol=root.vol  quiet acpi_backlight=video systemd.show_status=true
# acpi_osi=Linux
# thinkpad-acpi.brightness_enable=1 acpi_backlight=native
	echo	'Loading initial ramdisk ...'
	initrd	/root.vol/boot/initrd.img-4.7.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.7.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.0-1-amd64-recovery-2ec67375-40e5-4364-b7ed-3a055b911d92' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	echo	'Loading Linux 4.7.0-1-amd64 ...'
	linux	/root.vol/boot/vmlinuz-4.7.0-1-amd64 root=UUID=2ec67375-40e5-4364-b7ed-3a055b911d92 ro single rootflags=subvol=root.vol
	echo	'Loading initial ramdisk ...'
	initrd	/root.vol/boot/initrd.img-4.7.0-1-amd64
}
if [ "x$default" = 'Debian GNU/Linux, with Linux 4.7.0-1-amd64' ]; then default='Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 4.7.0-1-amd64'; fi;
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_ipxe ###
menuentry "Network boot (iPXE)" --users "" --class network {
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	linux16 /root.vol/boot/ipxe.lkrn
}
### END /etc/grub.d/20_ipxe ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	linux16	/root.vol/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	linux16	/root.vol/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	multiboot	/root.vol/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_gpt
	insmod btrfs
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
	else
	  search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
	fi
	multiboot	/root.vol/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/42_grml ###
menuentry "Grml Rescue System (grml64-full_2014.11.iso)" {
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  2ec67375-40e5-4364-b7ed-3a055b911d92
        else
          search --no-floppy --fs-uuid --set=root 2ec67375-40e5-4364-b7ed-3a055b911d92
        fi
        iso_path="/root.vol/boot/grml/grml64-full_2014.11.iso"
        export iso_path
        kernelopts=" keyboard=de nolvm  "
        export kernelopts
        loopback loop "/root.vol/boot/grml/grml64-full_2014.11.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
### END /etc/grub.d/42_grml ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
  --- Volume group ---
  VG Name               lva
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               198.56 GiB
  PE Size               4.00 MiB
  Total PE              50832
  Alloc PE / Size       50832 / 198.56 GiB
  Free  PE / Size       0 / 0
  VG UUID               gJqFJq-Iife-6gEh-TNDS-zfpF-FylG-DPmE9w

  --- Physical volume ---
  PV Name               /dev/mapper/ssd1p2
  VG Name               lva
  PV Size               198.57 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              50832
  Free PE               0
  Allocated PE          50832
  PV UUID               1Hsrkw-jFaA-33fc-JSWi-yI5A-IKyC-IIfugV

  --- Logical volume ---
  LV Path                /dev/lva/1
  LV Name                1
  VG Name                lva
  LV UUID                3xAVba-MS7O-UMQs-cy3x-QVUo-DRR7-wWqkwY
  LV Write Access        read/write
  LV Creation host, time (none), 2015-05-14 21:26:08 +0200
  LV Status              available
  # open                 1
  LV Size                7.45 GiB
  Current LE             1907
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

  --- Logical volume ---
  LV Path                /dev/lva/2
  LV Name                2
  VG Name                lva
  LV UUID                uuNHdm-0fIl-81RN-a4g5-060h-Ahtm-A9IPLj
  LV Write Access        read/write
  LV Creation host, time (none), 2015-05-14 21:26:21 +0200
  LV Status              available
  # open                 2
  LV Size                7.45 GiB
  Current LE             1907
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

  --- Logical volume ---
  LV Path                /dev/lva/3
  LV Name                3
  VG Name                lva
  LV UUID                0U4eWL-eMBc-r9Sf-Pj4T-PY5e-0mJa-tM8rTU
  LV Write Access        read/write
  LV Creation host, time (none), 2015-05-14 21:27:57 +0200
  LV Status              available
  # open                 1
  LV Size                183.66 GiB
  Current LE             47018
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3

*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Oct 22 12:26 ata-HL-DT-ST_DVDRAM_GU10N_M18A7J92244 -> ../../sr0
lrwxrwxrwx 1 root root  9 Oct 22 12:26 ata-KINGSTON_SKC300S37A240G_50026B724B03C6B9 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 22 12:26 ata-KINGSTON_SKC300S37A240G_50026B724B03C6B9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 ata-KINGSTON_SKC300S37A240G_50026B724B03C6B9-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 22 12:26 ata-KINGSTON_SKC300S37A240G_50026B724B03C6B9-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-name-lva-1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-name-lva-2 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-name-lva-3 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-name-ssd1p2 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-uuid-CRYPT-LUKS1-39e4aa930de54354bcff9bef24a38a86-ssd1p2 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-uuid-LVM-gJqFJqIife6gEhTNDSzfpFFylGDPmE9w0U4eWLeMBcr9SfPj4TPY5e0mJatM8rTU -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-uuid-LVM-gJqFJqIife6gEhTNDSzfpFFylGDPmE9w3xAVbaMS7OUMQscy3xQVUoDRR7wWqkwY -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 dm-uuid-LVM-gJqFJqIife6gEhTNDSzfpFFylGDPmE9wuuNHdm0fIl81RNa4g5060hAhtmA9IPLj -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 22 12:26 lvm-pv-uuid-1Hsrkw-jFaA-33fc-JSWi-yI5A-IKyC-IIfugV -> ../../dm-0
lrwxrwxrwx 1 root root  9 Oct 22 12:26 wwn-0x50026b724b03c6b9 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 22 12:26 wwn-0x50026b724b03c6b9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 wwn-0x50026b724b03c6b9-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 22 12:26 wwn-0x50026b724b03c6b9-part3 -> ../../sda3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 22 12:26 1325085c-dccd-4ed6-9035-6e2d242684c7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 2ec67375-40e5-4364-b7ed-3a055b911d92 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 22 12:26 39e4aa93-0de5-4354-bcff-9bef24a38a86 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 22 12:26 8a8e22d9-65e8-4e83-b2a6-5a643ba22b05 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 22 12:26 a25d7e10-f910-4924-ae17-f38461230e22 -> ../../dm-2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  dpkg                   1.18.10
ii  grub-common            2.02~beta3-1
ii  grub-pc-bin            2.02~beta3-1
ii  grub2-common           2.02~beta3-1
ii  ucf                    3.0036

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub-pc/mixed_legacy_and_grub2: true
* grub2/linux_cmdline:
* grub2/linux_cmdline_default: quiet acpi_backlight=video systemd.show_status=true
  grub-pc/install_devices_failed: false
  grub-pc/timeout: 2
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/kopt_extracted: false
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/hidden_timeout: false
  grub2/device_map_regenerated:
  grub-pc/install_devices_failed_upgrade: true
  grub2/force_efi_extra_removable: false
  grub-pc/disk_description:
  grub-pc/partition_description:
* grub-pc/install_devices: /dev/disk/by-id/ata-KINGSTON_SKC300S37A240G_50026B724B03C6B9
  grub-pc/install_devices_empty: false
  grub2/kfreebsd_cmdline:
  grub-pc/chainload_from_menu.lst: true
  grub-pc/install_devices_disks_changed:



More information about the Pkg-grub-devel mailing list