Yesterday I tried to update Ubuntu using the pop-up window - I think it’s the 24.4 upgrade, but I also don’t think I can check as I can’t boot
I think the power cut part way through, or at least something went wrong such that I can’t boot at all, and similar messages to think linked post
I’ve been running ubuntu for years, and fixed minor issues, but it’s fair to say I’m a dabbler, and not very well trained in this, or expereinced at problem-solving outwith searching these forums and trying stuff out.
Any suggestions gratefully received - I’m relegated to an office laptop running windows for now and it’s hellish.
Relevant System Information
Lenovo 82KD
Error Messages / Logs
Gave up waiting for root file device
ALERT! UUID=ad08612-a840-4aee-869e-d77832a93dbb does not exist. Dropping to a shell!
(same as the linked post)
What I’ve Tried
booting in recovery mode
forced reboot
blkid to list partitions (nothing happens)
various diagnostics included here but I’m not able to boot in recovery mode or otherwise: Ubuntu does not boot - busybox
A power cut during a release-upgrade about the worst possible thing that can happen at a time when your system is most vulnerable.
Your system might be recoverable…but it also might not. Depends upon exactly what was occurring when interrupted.
One way forward:
Use a different machine to create a 26.04 LiveUSB.
Boot into the LiveUSB’s “Try Ubuntu” environment.
You can use the “Try Ubuntu” environment to try to repair your boot.
If you can repair your boot, then you can try to complete the release-upgrade.
If repair attempts fail, then use the environment to preserve (backup) your data, configurations, settings, passwords, etc.
Reinstall Ubuntu. Restore your data from your backup.
Open Advanced options for Ubuntu at the GRUB menu and boot the oldest kernel in the list in normal mode, not recovery mode. blkid showing nothing at the (initramfs) prompt means that kernel’s initramfs can’t see the disk, and it’s likely the power cut stopped the upgrade before the new kernel’s initramfs was finished.
If the older kernel boots, finish the interrupted upgrade from a terminal, then reboot:
sudo dpkg --configure -a
sudo apt full-upgrade
sudo update-initramfs -u -k all
sudo update-grub
If none of the kernels boot, use the Try Ubuntu session from the LiveUSB. Find your root partition with lsblk -f (the large ext4 one), mount it, and change into it:
sudo mount /dev/<your-ext4-partition> /mnt
for d in dev proc sys run; do sudo mount --rbind /$d /mnt/$d; done
sudo chroot /mnt
mount /boot/efi
dpkg --configure -a
update-initramfs -u -k all
update-grub
Then reboot from the disk and run sudo apt full-upgrade to finish the upgrade.
A power outage during a major system change such as an upgrade is very destructive so you should follow the suggestions in the post above. The ALERT message you saw means Grub is looking for a specific partition with that UUID and it does not exist. How did you run the blkid command? It is not available in Grub and you said you can’t boot the system. Best to use an Ubuntu USB and follow the suggesitons above.