[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt tells me that grub-efi, grub2-common are no longer needed



On Thu 24 Jun 2021 at 17:06:50 (+0200), Markus wrote:
> I wanted to reinstall grub-efi-amd64 and got this:
> 
> markus@bmtMB1:/var/log/apt$ sudo apt install grub-efi-amd64
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  grub-efi-amd64 : Depends: grub-common (= 2.02+dfsg1-20+deb10u3)
>                   Depends: grub2-common (= 2.02+dfsg1-20+deb10u3)
>                   Depends: grub-efi-amd64-bin (= 2.02+dfsg1-20+deb10u3)
> E: Unable to correct problems, you have held broken packages.
> markus@bmtMB1:/var/log/apt$
> 
> 
> So...something is wrong here. Puhh...how to fix that?

Aftr reading the bug report (seems to be about macbooks, dual disks,
misconfigured grubs, etc), and https://wiki.debian.org/AptConfiguration
which gives an idea of pinning, you might consider just:

  $ sudo apt install grub-efi-amd64=2.02+dfsg1-20+deb10u4

I think you only have the one package pinned, so its dependencies
should just get dragged in as normal.

(Where there are several interrelated packages that are problematical,
people sometimes forget that installing them all in the same command
line can succeed, while installing one by one fails.)

Safety first: always have an alternative method of booting available
(usually a USB stick).

Cheers,
David.


Reply to: