Software & AppsOperating SystemLinux

How To Fix “Failed to Set MokListRT: Invalid Parameter” Error on Ubuntu 20.04 MacBook Pro

Ubuntu 15

If you’ve encountered the “Failed to Set MokListRT: Invalid Parameter” error on your Ubuntu 20.04 MacBook Pro, you’re not alone. This error is a known issue and can be quite frustrating. However, there are several ways to fix it. In this article, we’ll walk you through three possible solutions.

Understanding the Error

The “Failed to Set MokListRT: Invalid Parameter” error is typically associated with the Secure Boot process in Ubuntu. This error is triggered when the system fails to set the Machine Owner Key (MOK) list, a critical component in the Secure Boot process. It’s a known issue with Ubuntu 20.04 on MacBook Pro, and there’s a bug report on Launchpad Bug #1867092 that provides more information about this issue.

Solution 1: Replacing shimx64.efi with grubx64.efi

The first solution involves replacing shimx64.efi with grubx64.efi in the /boot/efi/EFI/ubuntu directory. Here’s how to do it:

  1. Open a terminal. You can do this by pressing Ctrl + Alt + T on your keyboard.
  2. Enter the following commands:
sudo su -
cd /boot/efi/EFI/ubuntu
cp grubx64.efi shimx64.efi
reboot

In this sequence of commands, sudo su - grants you root access, cd /boot/efi/EFI/ubuntu navigates to the directory where the EFI files are stored, cp grubx64.efi shimx64.efi copies grubx64.efi to shimx64.efi, effectively replacing it, and reboot restarts the system.

Solution 2: Removing shim and Reinstalling grub

Another solution is to remove shim and reinstall grub. Here’s how:

  1. Open a terminal.
  2. Enter the following commands:
sudo apt-get purge shim
sudo grub-install /dev/sda1

In this sequence of commands, sudo apt-get purge shim removes the shim package, and sudo grub-install /dev/sda1 reinstalls grub on the partition /dev/sda1. Make sure to replace /dev/sda1 with the correct partition for your system.

Solution 3: Installing rEFInd

The third solution involves installing rEFInd, a boot manager for EFI and UEFI platforms. Here’s how to do it:

  1. Open a terminal.
  2. Enter the following command:
sudo apt install refind

This command installs rEFInd on your system. After installing rEFInd, during boot, select the option that specifies grubx64.efi.

Conclusion

These are three possible solutions to the “Failed to Set MokListRT: Invalid Parameter” error on Ubuntu 20.04 MacBook Pro. Remember, these solutions may vary depending on your specific system configuration, so be sure to follow the instructions carefully and back up any important data before making changes.

If you’re still having trouble, don’t hesitate to seek help from the Ubuntu community or professional tech support. They can provide more personalized assistance based on your specific situation.

How do I open a terminal on Ubuntu 20.04?

To open a terminal on Ubuntu 20.04, press Ctrl + Alt + T on your keyboard.

What is Secure Boot?

Secure Boot is a security feature in modern computers that ensures only trusted software is loaded during the boot process. It helps protect against malware and unauthorized operating systems.

How can I check if Secure Boot is enabled on my MacBook Pro?

To check if Secure Boot is enabled on your MacBook Pro, restart your computer and hold down the Option key. If you see a lock icon and the message "Secure Boot Disabled" or "Secure Boot Off," then Secure Boot is currently disabled.

What is the purpose of the Machine Owner Key (MOK) list?

The Machine Owner Key (MOK) list is a database of trusted keys used in the Secure Boot process. It helps verify the integrity of the bootloader and prevent the execution of unauthorized code during the boot process.

Can I use Solution 1 or Solution 2 on any Ubuntu system, or are they specific to Ubuntu 20.04 MacBook Pro?

Solution 1 and Solution 2 mentioned in this article are specifically targeted towards fixing the "Failed to Set MokListRT: Invalid Parameter" error on Ubuntu 20.04 MacBook Pro. The steps may vary for different systems or Ubuntu versions, so it’s important to follow instructions specific to your setup.

What is rEFInd?

rEFInd is a boot manager for EFI and UEFI platforms. It provides a graphical interface to select and boot different operating systems installed on your computer. It can be used as an alternative to the default bootloader (GRUB) and may help resolve boot-related issues.

Can I use rEFInd on any Ubuntu system, or is it specific to Ubuntu 20.04 MacBook Pro?

rEFInd can be installed on any Ubuntu system, not just Ubuntu 20.04 MacBook Pro. It is compatible with EFI and UEFI platforms and can be used as a boot manager for various operating systems, including Ubuntu.

Leave a Comment

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