How to fix “Failed to start MokManager” / “import_mok_state() failed” after failed Ubuntu Installation

I managed to get my ZenBook pro Ubuntu installation in a broken state by cancelling the installation after entering a password for UEFI secure boot. I had to cancel the installation because the SSD wasn’t recognized. I got the following error:

Failed to open \EFI\BOOT\mmx64.efi – Not Found
Failed to load image \EFI\BOOT\mmx64.efi: Not Found
Failed to start MokManager: Not Found
Something has gone seriously wrong: import_mok_state() failed

The reason that this error occurs is because the installation set a few variables in the UEFI variable store that it should initialize the MOK manager (the MOK manager is used to enroll keys in UEFI). It should initialize the MOK manager, but only when the installation succeeded.

The way I got this fixed was eventually pretty easy, but it took me some time to find out:

  1. Enter your BIOS (I used holding F2 while booting)
  2. Go to the “Boot” tab
  3. Use “Add New Boot Option”
  4. Press enter on “Add boot option”
  5. Enter your boot title, I just named it “ubuntuinstall”
  6. Press enter on “Path for boot option”
  7. Select your USB
  8. Select UEFI
  9. Select BOOT
  10. Select grubx64.efi
  11. Press Create
  12. Reboot, and enter BIOS again
  13. Go to “Save & Exit” tab
  14. Use Boot Override to launch your just created “ubuntuinstall” option
  15. Ubuntu will now properly boot the installation again and you can now install it properly
This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to How to fix “Failed to start MokManager” / “import_mok_state() failed” after failed Ubuntu Installation

  1. Josh Driscoll says:

    Thank you so much for sharing. Spent about 4 hours wrestling with this before finding your solution.

  2. Bob Foo says:

    BIOS will not give me the option to create a custom boot. What’s the alternative?

  3. Alexandra Carrier says:

    Thank you so much!!

Leave a Reply

Your email address will not be published. Required fields are marked *