0

What is the difference between these two packages?

I ask because this stems off of a recent issue other users seem to be having with grub and it breaking after each time windows in accessed (here is an example of such a question: Failed to open \EFI\UBUNTU\*garbled* - Invalid parameter).

I ran sudo update-grub and it fixed the problem for the most part. The errors I get still are:

Failed to open \EFI\UBUNTU*gargled gibberish* - Invalid Parameter

Failed to load image \EFI\UBUNTU*garbled gibberish*: Invalid Parameter

start_image() returned Invalid Parameter, falling back to default loader

Now that I can load into Ubuntu without having to had run boot-repair, I checked all packages I have install with the word 'grub' in them and I noticed that I have "grub2-common" and "grub-common" installed, with their respective subsequent packages installed too. My assumption is that they both represent their respective bootloader versions but I'm not well-versed at all in this general topic.

Any answers that you have through your experience and knowledge are most appreciated!

1 Answers1

1

If you view the package details you'll see

Note: I'm using detail I've copied from terminal (eg. apt-cache show grub-common) but also package links for viewing some details online. You didn't mention a release, so I've used by own (easiest).

grub-common

https://packages.ubuntu.com/impish/grub-common

 Description-en_AU: GRand Unified Bootloader (common files)
 This package contains common files shared by the distinct flavours of
 GRUB. It is shared between GRUB Legacy and GRUB 2, although a number of
 files specific to GRUB 2 are here as long as they do not break GRUB
 Legacy.

ie. it contains common files for legacy grub.

grub2-common

https://packages.ubuntu.com/impish/grub2-common

 Description-en_AU: GRand Unified Bootloader (common files for version 2)
 This package contains common files shared by the distinct flavours of
 GRUB. The files in this package are specific to GRUB 2, and would break
 GRUB Legacy if installed on the same system.

Your system has both, as it then has capacity to deal with any found OSes that are using legacy grub, plus the more modern grub. This is normal.

guiverc
  • 30,396
  • Sorry I forgot those few more details to help with possible answers, I wasn't sure what to include as I was just looking for further wisdom on this. So it would be stupid of me to uninstall grub-common (for example) even if it looks like it is broken? It looks like grub-common is sharing files with grub2-common to compensate for the legacy's. Both Windows and Ubuntu for me are install under a UEFI bios so legacy doesn't come into play for me I think. – FirDouglas Aug 20 '21 at 14:44
  • If you look at the grub2-common link I provided; by removing grub-common you'd require the system to also remove grub2-common due its depends rule. The legacy it's referring is the initial version(s) of grub (it looked very different; was much simpler) and not the boot mode of your box (ie. not related to bios/uefi/secure-uefi). – guiverc Aug 20 '21 at 22:41
  • Gotcha. Makes sense, and as such I will avoid that then. Thank you for the clarification and the answer! – FirDouglas Aug 23 '21 at 14:43
  • Feel free to accept the answer; you can always hope a better answer comes along (may happen, but may also be a very long wait!) – guiverc Aug 23 '21 at 22:37
  • I've never had to accept any answer so sorry about that. Fingers crossed in the future. – FirDouglas Aug 24 '21 at 21:35