This problem was addressed quite some time ago, but it seems that we were not taken seriously by anyone in the team.
I uninstalled linux60 via mhwd (GUI).
Result after mkinitcpio -P
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-6.0-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux60.preset: 'fallback'
-> -k /boot/vmlinuz-6.0-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.0-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-6.0-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'default'
-> -k /boot/vmlinuz-6.1-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.1-x86_64.img
Usually these files transform to a pacsave, but this does no longer happen.
I had already removed Kernel 6.0 before the last update (2023-01-24) and did not get the error when i did that update, and as it popped up on this update (2023-02-03) is why I’m confused why this happened this time and not on the last update.
No, just used manjaro settings manager GUI to install 6.1 then rebooted and used it again to remove 6.0 (after testing 6.1 with benchmarks, etc), and that was before the 2023-01-24 update.
This time after the error happened (was only warnings update still worked), i went looking to why and that’s when i spotted the “linux60.preset” so renamed it to “linux60.preset.pacsave” then just did “sudo mkinitcpio -P” from terminal and “sudo update-grub” and the Kernel 6.0 error has gone.
I might not of needed the update-grub but better safe then sorry.
I have similar also.
Installed 6.2, rebooted into it. Removed 6.1 via msm then ran the update.
(41/56) upgrading linux62-nvidia [------------------------------------------------------------] 100%
cat: /usr/lib/modules/extramodules-6.1-MANJARO/version: No such file or directory
depmod: ERROR: Bad version passed
error: command failed to execute correctly
In the past the present files were part of the kernel packages. now they get autogenerated. We have to see why those won’t get removed in some cases.
pacman -Qo /etc/mkinitcpio.d/linux60.preset
error: No package owns /etc/mkinitcpio.d/linux60.preset