System got shutdown while running the command to update the system. now not able to load the kernel

Due to powerfailure system got shutdown while running the command to update the system.
Now it’s showing:

error : premature end of file /boot/vmlinuz-5.15-x86_64.
error: you need to load the kernel first.

Need help!

Hi @Dikru, and welcome!

I suspect you’ll need to chroot into the system and re-run the update:

How to chroot

  1. Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.

  2. Write/copy/dd the ISO to a USB thumb drive.

  3. When done, boot with the above mentioned USB thumb drive into the live environment.

  4. Once booted, open a terminal and enter the following command to enter the chroot encironment:

manjaro-chroot -a
  1. If you have more than one Linux installation, select the correct one to use from the list provided.

When done, you should now be in the chroot environment.

But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.

Once there, perform a full re-sync of the system:

pamac upgrade && pamac upgrade --aur --devel || echo -e '\033[0;91mThere was an error upgrading the system. AUR packages not upgraded.\e[0m'

This will update your system and ONLY if that was successful update any AUR packages.

a Reminder: While use of the AUR is possible, it’s neither recommended nor supported.

A little to late advise - better late than never