Your log shows that you have the 'grub' package installed, which is grub version 1. This is not the grub package that we install by default in Ubuntu, and you appear to have installed it without configuring it.
You should remove the grub package from your system and install the grub-pc package instead. The grub package has been removed from the Ubuntu archive for 18.04 and later. ** Changed in: grub (Ubuntu) Status: New => Won't Fix ** Changed in: grub (Ubuntu) Status: Won't Fix => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1807984 Title: package linux-image-4.15.0-42-generic 4.15.0-42.45~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1807984/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs