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!
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!
I suspect you’ll need to chroot
into the system and re-run the update:
chroot
Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.
Write/copy/dd
the ISO to a USB thumb drive.
When done, boot with the above mentioned USB thumb drive into the live environment.
Once booted, open a terminal and enter the following command to enter the chroot
encironment:
manjaro-chroot -a
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.