foomatic-printjob command not found

In this troubleshooting guide we learn how to fix foomatic-printjob command not found error message

Introduction

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

foomatic-printjob: command not found

or when using sudo you get the following error message

sudo: foomatic-printjob: command not found

Solutions to foomatic-printjob: command not found

How To Fix foomatic-printjob: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu foomatic-printjob is provided by foomatic-db-engine package.

foomatic-db-engine is:

Foomatic is a printing system designed to make it easier to set up common printers for use with Debian (and other operating systems). It provides the “glue” between a print spooler (like CUPS or lpr) and your actual printer, by telling your computer how to process files sent to the printer.

This package contains the architecture-dependent programs needed to set up and maintain the foomatic system. You will also need one or more database packages. The foomatic-db package includes drivers for most common printers using Ghostscript as the print processor, as well as some common glue code used in other filter systems.

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

sudo apt-get -y install foomatic-db-engine

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

You can also use apt command to install foomatic-db-engine.

sudo apt -y install foomatic-db-engine

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

sudo aptitude install foomatic-db-engine

Summary

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