Bug#1034420: grub-efi-amd64: Package update fails with error: installation script subprocess returned error exit status 128
Hi, I am running into the same problem. One of my machines fails the install with: installed grub-efi-amd64 package post-installation script subprocess returned error exit status 128 here the full log with -x in and DEBCONF_DEBUG=developer # dpkg --configure -a --debug=77 D01: root= admindir=/var/lib/dpkg D01: ensure_diversions: new, (re)loading D01: process queue pkg grub-efi:amd64 queue.len 1 progress 1, try 1 D40: checking dependencies of grub-efi:amd64 (- ) D000400: checking group ... D000400: checking possibility -> grub-common D000400: checking non-provided pkg grub-common:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> grub-efi-amd64 D000400: checking non-provided pkg grub-efi-amd64:amd64 D000400: unpacked/halfconfigured, defer D000400: found 1 D000400: found 1 matched 0 possfixbytrig - D40: ok 1 msgs >><< D01: process queue pkg grub-efi-amd64:amd64 queue.len 1 progress 2, try 1 D40: checking dependencies of grub-efi-amd64:amd64 (- ) D000400: checking group ... D000400: checking possibility -> debconf D000400: checking non-provided pkg debconf:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> grub-common D000400: checking non-provided pkg grub-common:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> grub2-common D000400: checking non-provided pkg grub2-common:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> grub-efi-amd64-bin D000400: checking non-provided pkg grub-efi-amd64-bin:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> ucf D000400: checking non-provided pkg ucf:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D40: ok 2 msgs >><< D40: checking Breaks D000400: checking breaker grub2-common:amd64 virtbroken Setting up grub-efi-amd64 (2.06-13+deb12u1) ... D02: trigproc_activate_packageprocessing pkg=grub-efi-amd64:amd64 D02: fork/exec /var/lib/dpkg/info/grub-efi-amd64.postinst ( configure 2.06-3~deb11u6 ) + cached_available_ids= + case "$1" in + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-efi-amd64.postinst configure 2.06-3~deb11u6 debconf (developer): frontend started debconf (developer): frontend running, package name is grub-efi-amd64 debconf (developer): starting /var/lib/dpkg/info/grub-efi-amd64.config configure 2.06-3~deb11u6 debconf (developer): <-- SET grub2/linux_cmdline debconf (developer): --> 0 value set debconf (developer): <-- SET grub2/linux_cmdline_default module.sig_enforce=0 i915.preliminary_hw_support=1 intel_iommu=on amd_iommu=on kvm_amd.npt=1 kvm_amd.avic=1 iommu=pt debconf (developer): --> 0 value set debconf (developer): <-- debconf (developer): --> 20 Bad line "" received from confmodule. debconf (developer): <-- INPUT medium grub2/linux_cmdline debconf (developer): --> 30 question skipped debconf (developer): <-- INPUT medium grub2/linux_cmdline_default debconf (developer): --> 30 question skipped debconf (developer): <-- INPUT low grub2/enable_os_prober debconf (developer): --> 30 question skipped debconf (developer): <-- INPUT low grub2/force_efi_extra_removable debconf (developer): --> 30 question skipped debconf (developer): <-- INPUT low grub2/update_nvram debconf (developer): --> 30 question skipped debconf (developer): <-- GO debconf (developer): --> 0 ok dpkg: error processing package grub-efi-amd64 (--configure): installed grub-efi-amd64 package post-installation script subprocess returned error exit status 128 D02: post_script_tasks - ensure_diversions D01: ensure_diversions: same, skipping D02: post_script_tasks - trig_incorporate D01: process queue pkg grub-efi:amd64 queue.len 0 progress 1, try 1 D40: checking dependencies of grub-efi:amd64 (- ) D000400: checking group ... D000400: checking possibility -> grub-common D000400: checking non-provided pkg grub-common:amd64 D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> grub-efi-amd64 D000400: checking non-provided pkg grub-efi-amd64:amd64 D000400: not configured/able
Bug#1034420: grub-efi-amd64: Package update fails with error: installation script subprocess returned error exit status 128
Hi, here below you can find the results of the script with set -x added right after set -e. cript started on 2023-05-07 10:10:40+02:00 [COMMAND="dpkg --configure --pending" TERM="screen-256color" TTY="/dev/pts/3" COLUMNS="153" LINES="47"] Setting up grub-efi-amd64 (2.06-12) ... + cached_available_ids= + case "$1" in + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ '[' '' ']' ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-efi-amd64.postinst configure 2.06-7 [1mdpkg:[0m error processing package grub-efi-amd64 (--configure): installed grub-efi-amd64 package post-installation script subprocess returned error exit status 128 [1mdpkg:[0m dependency problems prevent configuration of grub-efi: grub-efi depends on grub-efi-amd64 (= 2.06-12); however: Package grub-efi-amd64 is not configured yet. [1mdpkg:[0m error processing package grub-efi (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: grub-efi-amd64 grub-efi Script done on 2023-05-07 10:10:40+02:00 [COMMAND_EXIT_CODE="1"] Hope this helps... BTW what does the exist status 128 means exactly? ByeAndrea Il giovedì 27 aprile 2023 15:50:10 CEST, Steve McIntyre ha scritto: On Sat, Apr 22, 2023 at 11:05:14AM +, Andrea Palazzi wrote: >>>Errors were encountered while processing: >>> grub-efi-amd64 >>> grub-efi >>>E: Sub-process /usr/bin/dpkg returned an error code (1) >> >>There's not a lot to see here so far. What happens if you run: >> >> "sudo grub-install -v" >> >> by hand please? > >Hi, > >not sure if it's relevant or not, but I'm running on a ZFS boot and root >filesystem. Ok, thanks for the extra info. >Regarding the grub-install command, you can find attached the full output of >LC_ALL=C grub-install -v . Thanks. That's not showing anything unexpected, which surprises me. Could you please edit /var/lib/dpkg/info/grub-efi-amd64.postinst and add a line near the top saying set -x and then run # script -c "dpkg --configure --pending" dpkg.log please? That should capture whatever is failing in dpkg.log, I hope -- Steve McIntyre, Cambridge, UK. st...@einval.com We don't need no education. We don't need no thought control.
Bug#1034420: grub-efi-amd64: Package update fails with error: installation script subprocess returned error exit status 128
On Sat, Apr 22, 2023 at 11:05:14AM +, Andrea Palazzi wrote: >>>Errors were encountered while processing: >>> grub-efi-amd64 >>> grub-efi >>>E: Sub-process /usr/bin/dpkg returned an error code (1) >> >>There's not a lot to see here so far. What happens if you run: >> >> "sudo grub-install -v" >> >> by hand please? > >Hi, > >not sure if it's relevant or not, but I'm running on a ZFS boot and root >filesystem. Ok, thanks for the extra info. >Regarding the grub-install command, you can find attached the full output of >LC_ALL=C grub-install -v . Thanks. That's not showing anything unexpected, which surprises me. Could you please edit /var/lib/dpkg/info/grub-efi-amd64.postinst and add a line near the top saying set -x and then run # script -c "dpkg --configure --pending" dpkg.log please? That should capture whatever is failing in dpkg.log, I hope -- Steve McIntyre, Cambridge, UK.st...@einval.com We don't need no education. We don't need no thought control.
Bug#1034420: grub-efi-amd64: Package update fails with error: installation script subprocess returned error exit status 128
Hi! On Fri, Apr 14, 2023 at 09:23:03PM +0200, Andrea Palazzi wrote: >Package: grub-efi-amd64 >Version: 2.06-8 >Severity: important >X-Debbugs-Cc: palazziand...@yahoo.it > >Dear Maintainer, > * What led up to the situation? >updating the system with apt update && apt upgrade > > * What exactly did you do (or not do) that was effective (or > ineffective)? >apt-update && apt-upgrade > > * What was the outcome of this action? >Setting up grub-efi-amd64 (2.06-8) ... >dpkg: error processing package grub-efi-amd64 (--configure): > installed grub-efi-amd64 package post-installation script subprocess returned > error exit status 128 >dpkg: dependency problems prevent configuration of grub-efi: > grub-efi depends on grub-efi-amd64 (= 2.06-8); however: > Package grub-efi-amd64 is not configured yet. > >dpkg: error processing package grub-efi (--configure): > dependency problems - leaving unconfigured >Errors were encountered while processing: > grub-efi-amd64 > grub-efi >E: Sub-process /usr/bin/dpkg returned an error code (1) There's not a lot to see here so far. What happens if you run: "sudo grub-install -v" by hand please? -- Steve McIntyre, Cambridge, UK.st...@einval.com You raise the blade, you make the change... You re-arrange me 'til I'm sane...
Bug#1034420: grub-efi-amd64: Package update fails with error: installation script subprocess returned error exit status 128
Package: grub-efi-amd64 Version: 2.06-8 Severity: important X-Debbugs-Cc: palazziand...@yahoo.it Dear Maintainer, * What led up to the situation? updating the system with apt update && apt upgrade * What exactly did you do (or not do) that was effective (or ineffective)? apt-update && apt-upgrade * What was the outcome of this action? Setting up grub-efi-amd64 (2.06-8) ... dpkg: error processing package grub-efi-amd64 (--configure): installed grub-efi-amd64 package post-installation script subprocess returned error exit status 128 dpkg: dependency problems prevent configuration of grub-efi: grub-efi depends on grub-efi-amd64 (= 2.06-8); however: Package grub-efi-amd64 is not configured yet. dpkg: error processing package grub-efi (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: grub-efi-amd64 grub-efi E: Sub-process /usr/bin/dpkg returned an error code (1) * What outcome did you expect instead? An update without errors. -- Package-specific info: *** BEGIN /proc/mounts /dev/sda2 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 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="0" 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 part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod zfs set root='hd2,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt3 --hint-efi=hd2,gpt3 --hint-baremetal=ahci2,gpt3 --hint-bios=hd6,gpt3 --hint-efi=hd6,gpt3 --hint-baremetal=ahci6,gpt3 --hint-bios=hd5,gpt3 --hint-efi=hd5,gpt3 --hint-baremetal=ahci5,gpt3 --hint-bios=hd4,gpt3 --hint-efi=hd4,gpt3 --hint-baremetal=ahci4,gpt3 --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 1f9ee6c758e35b0b else search --no-floppy --fs-uuid --set=root 1f9ee6c758e35b0b fi font="/BOOT/debian@/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=it_IT 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=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod zfs set root='hd2,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt3 --hint-efi=hd2,gpt3 --hint-baremetal=ahci2,gpt3 --hint-bios=hd6,gpt3 --hint-efi=hd6,gpt3 --hint-baremetal=ahci6,gpt3 --hint-bios=hd5,gpt3 --hint-efi=hd5,gpt3 --hint-baremetal=ahci5,gpt3 --hint-bios=hd4,gpt3 --hint-efi=hd4,gpt3 --hint-baremetal=ahci4,gpt3 --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 1f9ee6c758e35b0b else search --no-floppy --fs-uuid --set=root 1f9ee6c758e35b0b fi insmod png if background_image /BOOT/debian@/grub/.background_cache.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' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option