mkbitmap command not found

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

Introduction

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

mkbitmap: command not found

or when using sudo you get the following error message

sudo: mkbitmap: command not found

Solutions to mkbitmap: command not found

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

In Ubuntu mkbitmap is provided by potrace package.

potrace is:

potrace is a utility for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP format), and the default output is an encapsulated PostScript file (EPS). A typical use is to create EPS files from scanned data, such as company or university logos, handwritten notes, etc. The resulting image is not “jaggy” like a bitmap, but smooth. It can then be rendered at any resolution.

Potrace can currently produce the following output formats: EPS, PostScript, PDF, SVG (scalable vector graphics), DXF, GeoJSON, PGM (for easy antialiasing of pixel-based images), Gimppath, and XFig. Additional backends might be added in the future.

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

sudo apt-get -y install potrace

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

You can also use apt command to install potrace.

sudo apt -y install potrace

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

sudo aptitude install potrace

Summary

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