Fedora 36 upgrade fails due to attempting to remove protected kernel-core

Attempting to upgrade x86_64 Fedora 35 to 36, and it fails almost immediately with the error:

Problem: The operation would result in removing the following protected packages: kernel-core

I googled quite a bit, and the only common advice to resolve this is ensure that installonly_limit in /etc/dnf/dnf.conf is greater than 1. But its set to 3 in my case.

Not sure what else to try to resolve this.

Temporarily change /etc/dnf/dnf.conf to install_limit=0 which means dnf should never auto remove kernels.
The only kernel* that would be protected is the kernel your booted into when dnf wants to update the kernel* and you’ve run out of open slots.
Setting install_limit=0 gives you unlimited open slots.

Can you post the output of:

ls /etc/dnf/protected.d/

Please post the output of uname -a and dnf list installed kernel* along with ls /boot

This fixed the problem. Thanks!

1 Like

Did you change it back? Otherwise you will get a problem of space if you keep all the kernels.
Please do what the others asked you.

Yes, I changed it back to the original value.

1 Like