Getting the message "[ 0.283078] Initramfs unpacking failed: Decoding failed" when booting ubuntu 20.04 then boots normal

From the comments...

  • set back compress=lz4 in /etc/initramfs-tools/initramfs.conf

  • rebuild your ramdisk with sudo update-initramfs -c -k $(uname -r)

  • reboot

Note: Use the sudo update-initramfs -c example, not sudo update-initramfs -u variation.