I have a dual-boot system consisting of Windows 11 + Linux Mint 21.1 (which is based on Ubuntu and that's why the question is in this forum) and GRUB 2.06.
A few days ago I installed generic updates with the typical apt update && apt upgrade
command, which in turn installed updates for the Linux kernel. After applying a reboot, the GRUB screen appeared as usual, but when selecting any OS the following error occurred:
error: shim_lock protocol not found.
error: you need to load the kernel first.
Press any key to continue...
Pressing any key returned to GRUB, and so on.
After a short investigation, I found that shim
is a software involved in the secure boot (SB) process, therefore, my first reaction was to disable SB in UEFI, which eliminated the error and allowed any OS to boot, so it could be seen as a "solution", however, disabling SB should not be necessary since Ubuntu comes ready to run with it, moreover, it is a layer of security that should not be ignored...
Before trying anything, I made a full backup of my Linux Mint, and then spent days trying different configurations in the boot-repair
program, with no success. Honestly, I didn't want to apply the instructions from all the forums you can find on the internet explaining how to implement SB on Linux distros, because I found them too complicated.
How to fix this error while keeping SB activated?