Score:0

Update Ubuntu Studio 22.04 - 5.15.0-56 to 5.15.0-58 causes a kernel panic

ga flag

The update finished, but on restart grub loads and then the computer freezes. It's the same with Recovery mode as shown in the photo. It boots fine into kernel version 5.15.0-56, and I ran the repair packages from its recovery mode, but it no effect on the 5.15.0-58 kernel.

enter image description here

jmarkus avatar
ga flag
Good point. I should have been more specific. I want to repair it or completely remove kernel 5.15.0-58 from the computer.
Elder Geek avatar
cn flag
to remove the kernel that is failing for you see https://help.ubuntu.com/community/RemoveOldKernels#Other_Methods
karel avatar
sa flag
Does this answer your question? [Uninstall specific kernel version](https://askubuntu.com/questions/329934/uninstall-specific-kernel-version)
Score:0
ga flag

Boot into an older kernel version and re-run sudo apt dist-upgrade -y. This process will re-install the kernel and upgrade the volume group headers for the newer kernel to boot properly.

Processing triggers for linux-image-5.15.0-58-generic (5.15.0-58.64) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-58-generic
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-5.15.0-58-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.15.0-58-generic (--configure):
 installed linux-image-5.15.0-58-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.15.0-58-generic
Log ended: 2023-01-29  21:29:12

Log started: 2023-01-31  15:17:43
(Reading database ... 143232 files and directories currently installed.)
Removing linux-headers-5.15.0-56-generic (5.15.0-56.62) ...
Removing linux-modules-extra-5.15.0-56-generic (5.15.0-56.62) ...
Removing linux-image-5.15.0-56-generic (5.15.0-56.62) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-56-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found linux image: /boot/vmlinuz-5.15.0-57-generic
Found initrd image: /boot/initrd.img-5.15.0-57-generic
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Removing linux-modules-5.15.0-56-generic (5.15.0-56.62) ...
Setting up linux-image-5.15.0-58-generic (5.15.0-58.64) ...
I: /initrd.img is now a symlink to boot/initrd.img-5.15.0-58-generic
Processing triggers for linux-image-5.15.0-58-generic (5.15.0-58.64) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-58-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Found linux image: /boot/vmlinuz-5.15.0-57-generic
Found initrd image: /boot/initrd.img-5.15.0-57-generic
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
  WARNING: PV /dev/sda5 in VG dev-vm-vg is using an old PV header, modify the VG to update.
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
jmarkus avatar
ga flag
Thank you for answering kusagi. There is one part to your example log that makes me nervous. "Warning: os-prober will not be executed to detect other bootable partitions. Systems" This is a dual boot system with Win10 on another partition. Currently grub v2.04 allows me to switch back & forth. I also notice that "sudo apt dist-upgrade -y" resets the headers, & removes old kernels. If this command resets the headers couldn't that make both unbootable? Also, updating grub, but not using os-prober, could be problematic.
jmarkus avatar
ga flag
Ran the command and it didn't change anything. Claimed it was "holding back" 7 packages, and made zero changes
Score:0
ga flag

This is what worked for me, and Elder Geek provided the helpful link.

Ran in a terminal this to see what images were installed

apt-mark showauto 'linux-image-.*'

this returned

linux-image-5.15.0-56-lowlatency
linux-image-unsigned-5.15.0-58-lowlatency

then ran

sudo apt-get purge linux-image-unsigned-5.15.0-58-lowlatency

then ran this again

apt-mark showauto 'linux-image-.*'

which this time returned

linux-image-5.15.0-56-lowlatency
linux-image-5.15.0-58-lowlatency

Then ran (per the Elder Geek's link)

sudo apt-get purge linux-image-5.15.0-58-lowlatency
sudo dpkg --purge linux-headers-5.15.0-58-lowlatency

Now linux-image-5.15.0-58-lowlatency is completely gone, and the computer is booting great on linux-image-5.15.0-56-lowlatency. I will waiting until a newer version becomes available and try updating again. Thanks for all the help.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.