pnmtoy4m command not found

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

Introduction

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

pnmtoy4m: command not found

or when using sudo you get the following error message

sudo: pnmtoy4m: command not found

Solutions to pnmtoy4m: command not found

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

In Ubuntu pnmtoy4m is provided by mjpegtools package.

mjpegtools is:

The mjpeg programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux.

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

sudo apt-get -y install mjpegtools

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

You can also use apt command to install mjpegtools.

sudo apt -y install mjpegtools

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

sudo aptitude install mjpegtools

Summary

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