Error: file '/boot/vmlinuz-6.1-x86_64' not found

Hello,

I was working on my laptop when it suddenly shut off while in the middle of updating. Now I’m currently struggling to reinstall the proper kernel. I have tried multiple guides on this forum but haven’t found success in either one of them. I am currently following this thread, however, I am running into a few problems.

For one, when I try to sync the pacman databases using the ‘pacman -Syyu’ command, it fails to synchronize. I have read somewhere that you don’t need to go into chroot, but when I sync my databases, reinstall the kernel, and reboot, my laptop still fails to load the kernel properly.

Any and all help would be greatly appreciated.

Yes you do. Especially if you want to run that command. Also, correct command is with a single ‘y’.

Post output – as preformatted text.

if you can boot

sudo rm /var/lib/pacman/db.lck 
sudo pacman -Syyu

Thanks. By deleting the lck file, I was able to use pacman commands in chroot. However, I’m still unable to install kernels from the chroot.

Post. Output.

then go in chroot
and return

mhwd-kernel -li
ls /etc/mkinitcpio.d/*.preset
ls /boot/
ls /lib/modules/