How To Install grub-common on Ubuntu 20.04

In this tutorial we learn how to install grub-common on Ubuntu 20.04. grub-common is GRand Unified Bootloader (common files) GRand Unified Bootloader (common files)

Introduction

In this tutorial we learn how to install grub-common on Ubuntu 20.04.

What is grub-common

grub-common is:

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. Task: ubuntu-live, kubuntu-live, xubuntu-live, lubuntu-live, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live

Package: grub-common Architecture: amd64 Version: 2.04-1ubuntu26 Multi-Arch: foreign Priority: optional Section: admin Source: grub2 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: GRUB Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13272 Depends: libc6 (>= 2.28), libdevmapper1.02.1 (>= 2:1.02.36), libefiboot1 (>= 37), libefivar1 (>= 37), libfreetype6 (>= 2.2.1), libfuse2 (>= 2.8.4-1.4), liblzma5 (>= 5.1.1alpha+20120614), gettext-base, lsb-base (>= 3.0-6) Recommends: os-prober (>= 1.33) Suggests: multiboot-doc, grub-emu, xorriso (>= 0.5.6.pl00), desktop-base (>= 4.0.6), console-setup Conflicts: init-select Breaks: apport (« 2.1.1), friendly-recovery (« 0.2.13), lupin-support (« 0.55), mdadm (« 2.6.7-2) Replaces: grub-coreboot (« 2.00-4), grub-efi (« 1.99-1), grub-efi-amd64 (« 2.00-4), grub-efi-ia32 (« 2.00-4), grub-efi-ia64 (« 2.00-4), grub-ieee1275 (« 2.00-4), grub-linuxbios (« 1.96+20080831-1), grub-pc (« 2.00-4), grub-yeeloong (« 2.00-4), init-select Filename: pool/main/g/grub2/grub-common_2.04-1ubuntu26_amd64.deb Size: 1852632 MD5sum: 8d0df6cf86d4233a101cd1a7360d493c SHA1: 60ef8bddfd318bf954e3b658347daf2b494312f1 SHA256: 4f67ac9d8790c192aed168b59cc640e5f82a977f4f8a005e0a28f2b7238d687b Homepage: https://www.gnu.org/software/grub/ Description-en: 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. Task: ubuntu-live, kubuntu-live, xubuntu-live, lubuntu-live, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live

There are three methods to install grub-common on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install grub-common Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install grub-common using apt-get by running the following command:

sudo apt-get -y install grub-common

Install grub-common Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install grub-common using apt by running the following command:

sudo apt -y install grub-common

Install grub-common Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install grub-common using aptitude by running the following command:

sudo aptitude -y install grub-common

How To Uninstall grub-common on Ubuntu 20.04

To uninstall only the grub-common package we can use the following command:

sudo apt-get remove grub-common

Uninstall grub-common And Its Dependencies

To uninstall grub-common and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove grub-common

Remove grub-common Configurations and Data

To remove grub-common configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge grub-common

Remove grub-common configuration, data, and all of its dependencies

We can use the following command to remove grub-common configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge grub-common

References

Summary

In this tutorial we learn how to install grub-common package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.