The error in the log is
Mar 30 12:04:38 ubuntu-mate ubiquity: Installing for x86_64-efi platform. Mar 30 12:04:57 ubuntu-mate ubiquity: Could not prepare Boot variable Mar 30 12:04:57 ubuntu-mate ubiquity: : Invalid argument Mar 30 12:04:57 ubuntu-mate ubiquity: grub-install: error: Mar 30 12:04:57 ubuntu-mate ubiquity: efibootmgr failed to register the boot entry: Input/output error. Mar 30 12:04:57 ubuntu-mate ubiquity: dpkg: error processing package grub-efi-amd64-signed (--configure):
The error in the log is
Mar 30 12:04:38 ubuntu-mate ubiquity: Installing for x86_64-efi platform. amd64-signed (--configure):
Mar 30 12:04:57 ubuntu-mate ubiquity: Could not prepare Boot variable
Mar 30 12:04:57 ubuntu-mate ubiquity: : Invalid argument
Mar 30 12:04:57 ubuntu-mate ubiquity: grub-install: error:
Mar 30 12:04:57 ubuntu-mate ubiquity: efibootmgr failed to register the boot entry: Input/output error.
Mar 30 12:04:57 ubuntu-mate ubiquity: dpkg: error processing package grub-efi-