How to Install and Uninstall grub-legacy-ec2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 05,2024

1. Install "grub-legacy-ec2" package

In this section, we are going to explain the necessary steps to install grub-legacy-ec2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install grub-legacy-ec2

2. Uninstall "grub-legacy-ec2" package

Please follow the instructions below to uninstall grub-legacy-ec2 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove grub-legacy-ec2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the grub-legacy-ec2 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: grub-legacy-ec2
Architecture: all
Version: 1:1ubuntu1
Priority: extra
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 82
Depends: debconf (>= 1.5.19) | cdebconf, ucf, debconf (>= 0.5) | debconf-2.0
Suggests: grub-legacy-doc
Conflicts: grub
Filename: pool/main/g/grub-legacy-ec2/grub-legacy-ec2_1ubuntu1_all.deb
Size: 19564
MD5sum: c158756b19a6058c930d5ed50cf88d19
SHA1: 82f84ce130aed61596c4414a102a65eaf302931a
SHA256: 6a9f0ac87febc76963ca0a17f94f2e75c42581e7ab5e928bf8267bbde099d2c0
Description: Handles update-grub for ec2 instances
Description-md5: e5f8ea347000ef0d0aedb42c000e0b9c