"me too"
{{{
$ dpkg --list | grep grub-pc
iF  grub-pc                               2.02~beta2-36ubuntu3.10               
     amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                           2.02~beta2-36ubuntu3.10               
     amd64        GRand Unified Bootloader, version 2 (PC/BIOS binaries)

$ uname -a
Linux <hostname> 4.4.0-79-generic #100-Ubuntu SMP Wed May 17 19:58:14 UTC 2017 
x86_64 x86_64 x86_64 GNU/Linux
}}}


This is the block it's complaining about:
{{{
        if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10 then
          if [ -e "/boot/efi/EFI/${bootloader_id}/fbx64.efi" ]; then
            rm -f "/boot/efi/EFI/${bootloader_id}/fbx64.efi";
          fi
        fi                                                                <--- 
HERE
}}}

However there are no syntax errors that I can see in this shell script.

Working backwards a bit, I added a debug echo just above that;
 -> echo statement doesn't get hit

Added another statement just above the previous block
{{{
      grub-efi-ia32|grub-efi-amd64|grub-efi-ia64|grub-efi-arm|grub-efi-arm64)
        bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \
                         cut -d' ' -f1)"
        case $bootloader_id in
          kubuntu) bootloader_id=ubuntu ;;
        esac
}}}

And it borked there
/var/lib/dpkg/info/grub-pc.postinst: line 694: syntax error near unexpected 
token `"fermmy:DEBUG: foo"'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692235

Title:
  Syntax error in .postinst - broken package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1692235/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to