Tried to update, but it fails and goes to Grub prompt.

punkrawkgeek

New Member
Jul 11, 2024
1
0
1
Good day to everyone,

I went to go update one of my proxmox servers through the GUI today and got this msg.

"Starting system upgrade: apt-get dist-upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

System not fully up to date (found 30 new packages)

starting shell"

It then goes to the shell and I type 'dpkg --configure -a'... and it hangs and reboots my system i to the Grub shell.

What have I done wrong?! Any help would be appreciated. I have looked around the forums and such, but I haven't seen this.

Thanks,

prg
 
I think that I might have had the same problem this morning and believe that I have resolved it.

I updated a couple of Proxmox servers this morning via the GUI.

I didn't notice any errors, but I was a bit distracted doing multiple things at once, so I am not absolutely sure that there weren't errors.

I rebooted one of the servers and it failed. It just showed a grub banner, not the grub shell prompt. Can't remember exactly what the banner said now, but the server was dead. No num lock, nothing. Power reset was the only option.

I booted the server to a Proxmox ISO and used the "Advanced Options -> Rescue Boot" option to get it booted.

After a couple of hours digging around I found the following in /var/log/apt/term.log
Code:
Processing triggers for initramfs-tools (0.142+deb12u1) ...
update-initramfs: Generating /boot/initrd.img-6.8.12-8-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.

Removable bootloader found at '/boot/efi/EFI/BOOT/BOOTX64.efi', but GRUB packages not set up to update it!
Run the following command:

echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u

Then reinstall GRUB with 'apt install --reinstall grub-efi-amd64'

This is a single nvme system so the "skipping ESP sync" is fine. I ran the two indicated commands and rebooted. All fixed.

The second system that I had updated (which hadn't been rebooted at this point) had the same messages in the log. I applied the same two commands and it rebooted fine first time.
 
Good day to everyone,

I went to go update one of my proxmox servers through the GUI today and got this msg.

"Starting system upgrade: apt-get dist-upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

System not fully up to date (found 30 new packages)

starting shell"

It then goes to the shell and I type 'dpkg --configure -a'... and it hangs and reboots my system i to the Grub shell.

What have I done wrong?! Any help would be appreciated. I have looked around the forums and such, but I haven't seen this.

Thanks,

prg

try the rescue boot of the PVE iso, if that doesn't work, boot a live CD and chroot into your root partition to finish the update..
 
  • Like
Reactions: punkrawkgeek