cups-config command not found

In this troubleshooting guide we learn how to fix cups-config command not found error message

Introduction

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

cups-config: command not found

or when using sudo you get the following error message

sudo: cups-config: command not found

Solutions to cups-config: command not found

How To Fix cups-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cups-config is provided by libcups2-dev package.

libcups2-dev is:

The Common UNIX Printing System (or CUPS(tm)) is a printing system and general replacement for lpd and the like. It supports the Internet Printing Protocol (IPP), and has its own filtering driver model for handling various document types.

This package provides the files necessary for developing CUPS-aware applications and CUPS drivers, as well as examples how to communicate with cups from different programming languages (Perl, Java, and PHP).

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

sudo apt-get -y install libcups2-dev

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

You can also use apt command to install libcups2-dev.

sudo apt -y install libcups2-dev

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

sudo aptitude install libcups2-dev

Summary

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