grub-menulst2cfg command not found

In this troubleshooting guide we learn how to fix grub-menulst2cfg command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

grub-menulst2cfg: command not found

or when using sudo you get the following error message

sudo: grub-menulst2cfg: command not found

Solutions to grub-menulst2cfg: command not found

How To Fix grub-menulst2cfg: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu grub-menulst2cfg is provided by grub-common package.

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.

grub-mkrescue needs the suggested packages mtools (for UEFI targets) and xorriso.

To fix this problem, we can install more using the command below.

sudo apt-get -y install grub-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install grub-common.

sudo apt -y install grub-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install grub-common

Summary

In this tutorial we learn how to fix grub-menulst2cfg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.