Ubuntu – Can’t boot Ubuntu 19.04 or its LiveUSB after enrolling MOK

19.04bootdual-bootsecure-bootuefi

Before showing GRUB, it shows

Unable to trigger tcg2 final events table: Invalid Parameter
Something has gone seriously wrong: import_mok_state() failed
: Invalid Parameter

and machine power off.

It's my first time to install Ubuntu 19.04 on this machine, DELL T5810 with UEFI. The Ubuntu installation was fine, enrolling the Machine Owner Key MOK caused the boot error. When I ran sudo apt install virtualbox. virtualbox installation prompted me to enroll MOK; I rebooted the machine, and enrolled MOK. Then it entered the above dead state.

Booting from Ubuntu's LiveUSB installer shows the same error message. Luckily, I can still boot into Windows 10 on the same machine. I just want to revert enrolling MOK. Not installing Virtualbox in future is acceptable.

What I've tried:

  1. Searching the error message leads to mokutil, but I can't boot into Linux now.
  2. I also tried to reset BIOS, but it doesn't work at all (I have to repair Windows boot).
  3. Open EFI partition in Windows, deleted EFI/ubuntu, EFI/BOOT/fbx64.efi, EFI/BOOT/mmx64.efi.
  4. I've deleted successful installed Ubuntu partition.
  5. Tried Ubuntu 18.04 Live USB.
  6. Upgrade BIOS to latest version from Dell website.
  7. Delete and re-create EFI partition completely under Windows.

The first 3 partitions are

  1. EFI
  2. Windows
  3. Ubuntu (has been removed)

Best Answer

Please see my post and my own answer to an identical problem on Ubuntu 18.04.2 LTS here.

The trick is to turn on TPM in bios settings. As I understand it, you need TPM ON or ACTIVE for storing and looking up keys. Let us know if this helps.

Related Question