How to Install and Uninstall grub-legacy-ec2 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: December 23,2024

1. Install "grub-legacy-ec2" package

This is a short guide on how to install grub-legacy-ec2 on Ubuntu 21.04 (Hirsute Hippo)

$ 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 21.04 (Hirsute Hippo):

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

3. Information about the grub-legacy-ec2 package on Ubuntu 21.04 (Hirsute Hippo)

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
SHA512: 36e2e90a75a4e82ced284a1be40d77bf29a17c19e216795d3004af2f95658a2e8205d9e86fbca6d543c01ad3f78ae69cb405222f4d4bd88c75f824d0bdcfd398
Description-en: Handles update-grub for ec2 instances
EC2 instances that use grub-legacy as a bootloader need a way to keep
/boot/grub/menu.lst up to date while not conflicting with grub-pc.
This package provides that.
Description-md5: e5f8ea347000ef0d0aedb42c000e0b9c