Ad suggested here https://askubuntu.com/questions/1302806/grub-install-fails-because-of- efibootmgr-could-not-prepare-boot-variable-inva
run manual grub install - this helped: sudo grub-install --target=x86_64-efi --bootloader-id=GRUB --efi- directory=/boot/efi --no-nvram --removable Installing for x86_64-efi platform. Installation finished. No error reported. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851955 Title: installation fails in grub-install with: efivarfs_set_variable: writing to fd <N> failed: Invalid argument To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/efivar/+bug/1851955/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs