Initramfs unpacking failed: invalid magic as start of compressed

There are two solutions:

  1. solution: Switch to Kernel 5.10 or newer LTS in GRUB menu

OR

  1. solution: You need to chroot to your broken system with live USB stick, then edit /etc/mkinitpcio.conf to change the compression to gzip, then run mkinitcpio -P && update-grub, then reboot
4 Likes