'Initramfs: ERROR: Bad version passed vmlinuz-5.15.36

I trying to build the kernel 5.15.36. My standard kernel - 5.17.5. During initramfs I get error: Bad version passed vmlinuz-5.15.36

System: Ubuntu 22.04 LTS

What to do?



Solution 1:[1]

I had the same problem after upgrading from 20 to 22 this is what I have did: booting OS from the One to last kernel and running commands below in order:

sudo update-initramfs -u -k {the last version of kernel eg: 5.15.0-27-generic}

sudo update-grub

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tyler2P