mkdiskimage command not found

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

Introduction

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

mkdiskimage: command not found

or when using sudo you get the following error message

sudo: mkdiskimage: command not found

Solutions to mkdiskimage: command not found

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

In Ubuntu mkdiskimage is provided by syslinux-utils package.

syslinux-utils is:

syslinux is a suite of bootloaders, currently supporting DOS FAT and NTFS filesystems (SYSLINUX), Linux ext2/ext3/ext4, btrfs, and xfs filesystems (EXTLINUX), PXE network boots (PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).

This package contains the auxiliary utilities.

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

sudo apt-get -y install syslinux-utils

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

You can also use apt command to install syslinux-utils.

sudo apt -y install syslinux-utils

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

sudo aptitude install syslinux-utils

Summary

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