cbootimage command not found

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

Introduction

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

cbootimage: command not found

or when using sudo you get the following error message

sudo: cbootimage: command not found

Solutions to cbootimage: command not found

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

In Ubuntu cbootimage is provided by cbootimage package.

cbootimage is:

This package contains two programs to parse the boot config table (bct) of Tegra SoC based devices and to generate a new bct with appended bootloader (e.g. u-boot) read to be flashed to a storage device. The boot config table is used in the early boot process to setup the sdhci, DRAM memory controller and also points to the position of the bootloader.

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

sudo apt-get -y install cbootimage

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

You can also use apt command to install cbootimage.

sudo apt -y install cbootimage

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

sudo aptitude install cbootimage

Summary

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