3

I installed the 5.15.0-71 kernel on Ubuntu 22.04 LTS and rebooted my bare metal home server (Ryzen 7600). After reboot I received these two errors:

error: cannot allocate kernel buffer
error: you need to load the kernel first.

Press any key to continue..._

I am then sent to the grub selection screen. Trying to boot into Ubuntu repeats error message above.

The Details

  • I can boot into the 5.15.0-70 kernel from grub with no problem
  • I have updated Kernels before with no problem
  • I am able to load 5.15.0-71 after selecting it on grub many (10+) times in a row.

What I've Tried

  • I've disabled secure boot
  • I've reinstalled the new kernel

I've looked through the internet and found nothing describing my exact error (plenty of "you need to load kernel first." problems but none with "cannot allocate kernel buffer" also). I tried to find info on and understand the kernel buffer but my Ubuntu newbie brain couldn't understand what I found. I would appreciate any explanations or suggestions.

2 Answers2

2

So it turns out this is a bug with the 5.15.0-71 kernel probably involving Ryzen APUs. Thank you @Matthew for creating the bug report. If you are having the same problem please add your report here so that the underlying problem can be fixed. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2017929

The Workaround

From the linked bug report, the user rmgradient0 provided this series of steps that allow me to boot regularly:

sudo nano /etc/default/grub [I changed one line "GRUB_TIMEOUT=0" to "GRUB_TIMEOUT=5"]
sudo update-grub
sudo update-initramfs -uk 'all'
sudo shutdown -h now
1

Had the same problem with Xubuntu 22.04. Using the older kernel and then

sudo update-initramfs -uk 'all'

worked for me for the newer kernel too.