Preparing to unpack .../grub-pc_2.02~beta2-36ubuntu3.10_amd64.deb ... Unpacking grub-pc (2.02~beta2-36ubuntu3.10) over (2.02~beta2-36ubuntu3.9) ... Preparing to unpack .../grub2-common_2.02~beta2-36ubuntu3.10_amd64.deb ... Unpacking grub2-common (2.02~beta2-36ubuntu3.10) over (2.02~beta2-36ubuntu3.9) ... Preparing to unpack .../grub-pc-bin_2.02~beta2-36ubuntu3.10_amd64.deb ... Unpacking grub-pc-bin (2.02~beta2-36ubuntu3.10) over (2.02~beta2-36ubuntu3.9) ... Preparing to unpack .../grub-common_2.02~beta2-36ubuntu3.10_amd64.deb ... Unpacking grub-common (2.02~beta2-36ubuntu3.10) over (2.02~beta2-36ubuntu3.9) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for install-info (6.1.0.dfsg.1-5) ... Processing triggers for systemd (229-4ubuntu17) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Setting up grub-common (2.02~beta2-36ubuntu3.10) ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Setting up grub2-common (2.02~beta2-36ubuntu3.10) ... Setting up grub-pc-bin (2.02~beta2-36ubuntu3.10) ... Setting up grub-pc (2.02~beta2-36ubuntu3.10) ... /var/lib/dpkg/info/grub-pc.postinst: line 703: syntax error near unexpected token `fi' dpkg: error processing package grub-pc (--configure): subprocess installed post-installation script returned error exit status 2