Re: Unattended upgrade of grub failed

2023-10-08 Thread Greg Wooledge
On Sun, Oct 08, 2023 at 05:14:52PM +0200, Jesper Dybdal wrote: > After the reboot, which went well, I noticed that the new kernel version was > "held back".  An explicit install of the new kernel seemed to succeed, and > everything seems to work ok now. Note the differences among "apt upgrade", "a

Re: Unattended upgrade of grub failed

2023-10-08 Thread Jeffrey Walton
On Sun, Oct 8, 2023 at 1:04 PM Jesper Dybdal wrote: > > On 2023-10-08 12:07, Jesper Dybdal wrote: > > On 2023-10-08 11:25, Marco M. wrote: > >> Am 08.10.2023 um 11:09:53 Uhr schrieb Jesper Dybdal: > >> > >>> It seems to have a problem with "grub-pc". But I thought that > >>> grub-pc was only for

Re: Unattended upgrade of grub failed

2023-10-08 Thread Jesper Dybdal
On 2023-10-08 11:25, Marco M. wrote: Am 08.10.2023 um 11:09:53 Uhr schrieb Jesper Dybdal: It seems to have a problem with "grub-pc".  But I thought that grub-pc was only for BIOS boot, and that by installing the UEFI version grub-pc would disappear or at least be disabled. Uninstall grub-pc

Re: Unattended upgrade of grub failed

2023-10-08 Thread Marco M.
Am 08.10.2023 um 12:46:06 Uhr schrieb DdB: > My understanding is, that it might be dangerous to uninstall grub-pc > and its dependencies without further precautions. If a system was installed in UEFI mode, no grub-pc is installed. If a system is being migrated from BIOS boot to UEFI boot, care mu

Re: Unattended upgrade of grub failed

2023-10-08 Thread Marco M.
Am 08.10.2023 um 13:37:45 Uhr schrieb Jesper Dybdal: > I tried to simulate it with a "apt-get -s remove grub-pc".  It then > said: > > The following packages will be REMOVED: >   grub-pc grub2 > > Is removing grub2 not a problem?  If I do an "aptitude why grub2", it > says: That is my EFI syst

Re: Unattended upgrade of grub failed

2023-10-08 Thread Jesper Dybdal
On 2023-10-08 12:07, Jesper Dybdal wrote: On 2023-10-08 11:25, Marco M. wrote: Am 08.10.2023 um 11:09:53 Uhr schrieb Jesper Dybdal: It seems to have a problem with "grub-pc".  But I thought that grub-pc was only for BIOS boot, and that by installing the UEFI version grub-pc would disappear or

Re: Unattended upgrade of grub failed

2023-10-08 Thread DdB
Am 08.10.2023 um 12:46 schrieb DdB: > OMG, this looks wrong to me. Errata: I apologize for spreading nonsense. My mistake was, that, although most of my vm's are actually using UEFI, the one, i was testing was NOT. Sorry for my confusion. Disregard my earlier statements ...

Re: Unattended upgrade of grub failed

2023-10-08 Thread DdB
Am 08.10.2023 um 11:33 schrieb Marco M.: > Specifying a block device for boot loader installation is only needed > for BIOS boot and not for UEFI boot, so in case of an UEFI system, > grub-pc isn't needed. > OMG, this looks wrong to me. So i went to check in practice, using a virtual machine, tha

Re: Unattended upgrade of grub failed

2023-10-08 Thread Jesper Dybdal
On 2023-10-08 11:25, Marco M. wrote: Am 08.10.2023 um 11:09:53 Uhr schrieb Jesper Dybdal: It seems to have a problem with "grub-pc".  But I thought that grub-pc was only for BIOS boot, and that by installing the UEFI version grub-pc would disappear or at least be disabled. Uninstall grub-pc if

Re: Unattended upgrade of grub failed

2023-10-08 Thread Marco M.
Am 08.10.2023 um 11:30:13 Uhr schrieb DdB: > On issuing the update interactively, i could see, that grub was > prompting for the place to write itself to, which needed interaction. > After giving the info (like /dev/sda in my case), the upgrade > succeded. Later, there came more updates, but this

Re: Unattended upgrade of grub failed

2023-10-08 Thread DdB
Am 08.10.2023 um 11:09 schrieb Jesper Dybdal: > This has worked fine since then, with unattended-upgrades succeeding in > keeping it up-to-date, including kernel upgrades and reboots. > > But this morning, unattended-upgrades failed: Hi, i was having the same problem on several virtual machines,

Re: Unattended upgrade of grub failed

2023-10-08 Thread Marco M.
Am 08.10.2023 um 11:09:53 Uhr schrieb Jesper Dybdal: > It seems to have a problem with "grub-pc".  But I thought that > grub-pc was only for BIOS boot, and that by installing the UEFI > version grub-pc would disappear or at least be disabled. Uninstall grub-pc if you are on an UEFI system. You ca