mkelfImage command not found

In this troubleshooting guide we learn how to fix mkelfImage command not found error message

Introduction

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

mkelfImage: command not found

or when using sudo you get the following error message

sudo: mkelfImage: command not found

Solutions to mkelfImage: command not found

How To Fix mkelfImage: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mkelfImage is provided by mkelfimage package.

mkelfimage is:

mkelfImage is a program that makes an ELF boot image from a Linux kernel image.

The image should work with any i386 multiboot compliant ELF boot loader that passes no option. The image is compliant with the coreboot (previously LinuxBIOS) ELF booting spec and compatible with the Linux kexec kernel patch.

A key feature of mkelfImage is that nothing relies upon BIOS calls, but they can be made when necessary. This is useful for systems running on coreboot.

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

sudo apt-get -y install mkelfimage

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

You can also use apt command to install mkelfimage.

sudo apt -y install mkelfimage

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

sudo aptitude install mkelfimage

Summary

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