0

I recently dual-booted Ubuntu and i can't boot into it.

My first time doing this there were no problems. But now there are and i dont know how to fix it. Here are the errors that appear after trying to boot.

error: /boot/vmlinuz-5.4.0-45 has invalid signature

error: you need to load the kernel first.

If you need more information let me know because i dont know what information to give in this situation. Thanks!

2 Answers2

2

Disabling Secure Boot solved the problem.

2

For those people who may not want to disable Secure Boot permanently

In my case reinstalling shim-signed solved the problem.

First, temporarily disable Secure Boot from the BIOS, then reinstall shim-signed:

sudo apt purge shim-signed
sudo apt install shim-signed

Then re-enable Secure Boot in the BIOS.

Make sure Secure Boot is enabled:

sudo mokutil --sb-state

Also if you have a third-party driver(e.g. Nvidia) you should reinstall the driver and then, a pop-up window will be displayed asking for a password for enrolling key on the next reboot:

enter image description here

Then reboot the system and immediately after reboot you will see something like this:

enter image description here

Select Enroll MOK and then enter the password that you set before.