Error messages while updating about kernels I don't have

Hi!
I have updated my system and every time I do it I see error messages about kernels I don’t have for a long time. My kernel now is 5.13.13-1.
The messages are:

==> Building image from preset: /etc/mkinitcpio.d/linux57.preset: ‘default’
→ -k /boot/vmlinuz-5.7-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.7-x86_64.img
==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.7-x86_64' ==> Building image from preset: /etc/mkinitcpio.d/linux57.preset: 'fallback' -> -k /boot/vmlinuz-5.7-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.7-x86_64-fallback.img -S autodetect ==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.7-x86_64’
==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: ‘default’
→ -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64.img
==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.8-x86_64' ==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: 'fallback' -> -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64-fallback.img -S autodetect ==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.8-x86_64’
error: command failed to execute correctly

I have seen several posts about similar errors but they are about kernels the users had in their systems.

Any idea?

Thanks a lot in advance!

You can safely remove the .preset files located under /etc/mkinitcpio.conf.d/ of the kernels you no longer have installed.

1 Like

Very easy solution.
Thanks a lot!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.