mkenvimage command not found

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

Introduction

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

mkenvimage: command not found

or when using sudo you get the following error message

sudo: mkenvimage: command not found

Solutions to mkenvimage: command not found

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

In Ubuntu mkenvimage is provided by u-boot-tools package.

u-boot-tools is:

This package includes programs for generating and listing U-Boot images in various formats:

  • mkimage
  • dumpimage
  • mksunxiboot
  • mkenvimage

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

sudo apt-get -y install u-boot-tools

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

You can also use apt command to install u-boot-tools.

sudo apt -y install u-boot-tools

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

sudo aptitude install u-boot-tools

Summary

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