[Bug 1871989] [NEW] dpkg: error processing package grub-efi-amd64-signed (--configure):
Brett Bogert
bbogert24 at gmail.com
Fri Apr 10 02:57:41 UTC 2020
Public bug reported:
Upon updates on 20200409 I encountered the following error:
Setting up grub-efi-amd64-signed (1.139+2.04-1ubuntu24) ...
/var/lib/dpkg/info/grub-efi-amd64-signed.postinst: 23: Syntax error: word unexpe
cted (expecting ")")
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess ret
urned error exit status 2
The problem is being caused by a syntax error in grub-efi-amd64-signed.postint
at line 23.
Problematic code:
case $1 in
configure)
target=x86_64-efi ;;
# Check /boot/grub to see if we previously installed to an ESP. We don't
# want to trigger the install code just by installing the package,
# normally the installer installs grub itself first.
if test -e /boot/grub/$target/core.efi; then
/usr/share/grub/grub-check-signatures
/usr/lib/grub/grub-multi-install --target=$target
fi
;;
esac
Corrected code:
case $1 in
configure)
target=x86_64-efi
# Check /boot/grub to see if we previously installed to an ESP. We don't
# want to trigger the install code just by installing the package,
# normally the installer installs grub itself first.
if test -e /boot/grub/$target/core.efi; then
/usr/share/grub/grub-check-signatures
/usr/lib/grub/grub-multi-install --target=$target
fi
;;
esac
Problem was found and fixed using shellcheck and geany IDE.
I changed the code re-ran the upgrade command verified the
boot partition via the dialog and rebooted and it worked
fine.
Thanks,
Brett "WolfMan" Bogert
** Affects: grub2 (Ubuntu)
Importance: Undecided
Status: New
--
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/1871989
Title:
dpkg: error processing package grub-efi-amd64-signed (--configure):
Status in grub2 package in Ubuntu:
New
Bug description:
Upon updates on 20200409 I encountered the following error:
Setting up grub-efi-amd64-signed (1.139+2.04-1ubuntu24) ...
/var/lib/dpkg/info/grub-efi-amd64-signed.postinst: 23: Syntax error: word unexpe
cted (expecting ")")
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess ret
urned error exit status 2
The problem is being caused by a syntax error in grub-efi-amd64-signed.postint
at line 23.
Problematic code:
case $1 in
configure)
target=x86_64-efi ;;
# Check /boot/grub to see if we previously installed to an ESP. We don't
# want to trigger the install code just by installing the package,
# normally the installer installs grub itself first.
if test -e /boot/grub/$target/core.efi; then
/usr/share/grub/grub-check-signatures
/usr/lib/grub/grub-multi-install --target=$target
fi
;;
esac
Corrected code:
case $1 in
configure)
target=x86_64-efi
# Check /boot/grub to see if we previously installed to an ESP. We don't
# want to trigger the install code just by installing the package,
# normally the installer installs grub itself first.
if test -e /boot/grub/$target/core.efi; then
/usr/share/grub/grub-check-signatures
/usr/lib/grub/grub-multi-install --target=$target
fi
;;
esac
Problem was found and fixed using shellcheck and geany IDE.
I changed the code re-ran the upgrade command verified the
boot partition via the dialog and rebooted and it worked
fine.
Thanks,
Brett "WolfMan" Bogert
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1871989/+subscriptions
More information about the foundations-bugs
mailing list