Had Ubuntu 18.04 Desktop on a Dell Optiplex 990. Tried to upgrade it to 20.04 over the network but that had periodic errors and eventually failed. Could get GUI login screen but could not login. After following steps such as in https://ostechnix.com/how-to-fix-broken-ubuntu-os-without-reinstalling-it/ (which ran with errors) I could login, but video was limited to 800x600, it couldn't recognize my display, and updates failed because of unmet dependencies. In this report I'm skipping the details of those errors because I decided to try to reinstall from scratch.
So, the problem is every Ubuntu 20.04.5 live USB flash drive I've made with Startup Disk Creator cannot be booted. I've made the flash drives on another Ubuntu 20.04 system, an Ubuntu 18.04.5 system, and an Ubuntu 16.04 system (the later 2 being booted from old bootable flash drives I still have). I get the error "Failed to Set MokListRT: Out of resources."
Error message: Failed to Set MokListRT: Out of resources
Researched that issue, e.g.:
Failed to set MokListRT: out of Resources : import_mok_state()
Ubuntu 20.04 Failed to Set MokListRT: Invalid Parameter
and several people who have gotten a similar error after updating their Mac or Intel laptop with Ubuntu suggest fixing it by either:
- overwriting the shim executeable with a copy of the grub executeable (e.g. cd /boot/efi/EFI/ubuntu, cp grubx64.efi shimx64.efi). But the problem with this, after searching, is shimx64.efi doesn't exist on the live flash, except perhaps inside the shim...deb package,
OR
- overwriting mmx64.efi with grubx64.efi (which on the live flash are both in /EFI/BOOT/). I attempted the later but it turned out that since the flash drive has an ISO9660 file system, it's read only and can't be mounted rw, so I can't "cp grubx64.efi mmx64.efi".
So, again, the problem is every Ubuntu 20.04.5 live USB flash drive I've made with Startup Disk Creator cannot boot on my 2011 Dell Optiplex 990, or my 2011 Dell Latitude E6420. Both of these have the latest BIOS, and have GPT disks so I boot in UEFI mode (since, from recalling upgrade difficulties ~2 years ago, I think if I boot the live flash in MBR mode but install on a GPT disk, it doesn't work). There is no secure boot setting in BIOS. FYI I have Ubuntu and Windows 10 installed on the boot disk. FYI I have used at least 2 different flash drives, have formatted them as GPT before running Startup Disk Creator, but after Startup Disk Creator is finished they appear (in the Disks utility) as MBR not GPT. Also FYI per this article https://web.sas.upenn.edu/jasonrw/2016/04/07/uefi-and-a-dell-optiplex-990/ Dell 990s support either BIOS/MBR or UEFI, but not both simultaneously (no UEFI-CSM compatibility mode).