chdman command not found

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

Introduction

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

chdman: command not found

or when using sudo you get the following error message

sudo: chdman: command not found

Solutions to chdman: command not found

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

In Ubuntu chdman is provided by mame-tools package.

mame-tools is:

MAME is a hardware emulator: it faithfully reproduces the behavior of many arcade machines (it is not a simulation).

This package provides tools to be used with MAME. It currently contains: castool – generic cassette manipulation tool for MAME chdman – MAME Compressed Hunks of Data CHD manager floptool – Generic floppy image manipulation tool for MESS imgtool – generic image manipulation tool for MAME jedutil – binary to/from JEDEC file converter ldresample – Laserdisc audio synchronizer and resampler ldverify – Laserdisc AVI/CHD verifier romcmp – ROM comparison utility program

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

sudo apt-get -y install mame-tools

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

You can also use apt command to install mame-tools.

sudo apt -y install mame-tools

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

sudo aptitude install mame-tools

Summary

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