How to Install and Uninstall grub-legacy-ec2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "grub-legacy-ec2" package

Please follow the guidelines below to install grub-legacy-ec2 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "grub-legacy-ec2" package

This tutorial shows how to uninstall grub-legacy-ec2 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the grub-legacy-ec2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: grub-legacy-ec2
Architecture: all
Version: 21.1-19-gbad84ad4-0ubuntu1~16.04.2
Priority: extra
Section: admin
Source: cloud-init
Origin: Ubuntu
Maintainer: Ubuntu Developers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 142
Depends: debconf (>= 1.5.19) | cdebconf, ucf, util-linux (>= 2.15-1), debconf (>= 0.5) | debconf-2.0
Suggests: grub-legacy-doc
Conflicts: grub
Filename: pool/main/c/cloud-init/grub-legacy-ec2_21.1-19-gbad84ad4-0ubuntu1~16.04.2_all.deb
Size: 36602
MD5sum: 71d009a393cb1a4490db39c829b8c15f
SHA1: 14716aa763350dae557ec529908f971b5b184177
SHA256: 18391aba03ead504f49dc4023d642d4028d02cdf473bd9ccc2c1edbbd1bf89cd
SHA512: 7914a1dba89c7b7aebb696b61850215bdd7dc01d0e7d6ef5c2cc58a7d5855a95f88ea32ddf7f137e3fa84d39a1ccc3b423b8060104c5d8b1b8a2b23ff5772a97
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
Task: cloud-image, server
Supported: 5y

Package: grub-legacy-ec2
Priority: extra
Section: admin
Installed-Size: 105
Maintainer: Scott Moser
Architecture: all
Source: cloud-init
Version: 0.7.7~bzr1212-0ubuntu1
Depends: debconf (>= 1.5.19) | cdebconf, ucf, util-linux (>= 2.15-1), debconf (>= 0.5) | debconf-2.0
Suggests: grub-legacy-doc
Conflicts: grub
Filename: pool/main/c/cloud-init/grub-legacy-ec2_0.7.7~bzr1212-0ubuntu1_all.deb
Size: 22306
MD5sum: 014bd96e855f7470fc2a86914131be58
SHA1: 70c89775962e2a190e9a84164aace5294a2c3cf6
SHA256: e329591f0de751819d6139292227da0f0b8be47bc94085fa0a4bbdeda44c3cb0
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
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: cloud-image, server