Bug#988392: Impossible to install grub-pc and grub-efi-amd64 in parallel

Paul Menzel pmenzel at molgen.mpg.de
Wed May 12 07:51:05 BST 2021


Dear Colin,


Am 11.05.21 um 23:37 schrieb Colin Watson:
> On Tue, May 11, 2021 at 09:19:28PM +0200, Paul Menzel wrote:
>> I have a Debian installation on a disk, I carry around, and I want to boot
>> on BIOS and (U)EFI systems. This would be possible with the switch
>> `--target`.
>>
>>      sudo grub-install --target=i386-pc --boot-directory=/boot /dev/sda
>>
>> and
>>
>>      sudo grub-install --target=x86_64-efi /dev/sda
>>
>> Unfortunately I am unable to install both packages in parallel as they
>> conflict (Replaces?) with each other.
>>
>>      $ apt show grub-pc
>>      […]
>>      Replaces: grub, grub-common (<= 1.97~beta2-1), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<< 2.04-18)
> 
> The purpose of grub-pc and grub-efi-amd64 is to own the system's boot
> process, and so only one of those may be installed at once; those
> Conflicts are deliberate.  However, to support your use case, you can
> install grub-pc-bin and grub-efi-amd64-bin in parallel, and doing so
> gives you enough to be able to run the grub-install commands you're
> asking for.

As always thank you very much for the fast and helpful reply with the 
solution. Sorry for not thinking of that myself.


Kind regards,

Paul



More information about the Pkg-grub-devel mailing list