compton command not found

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

Introduction

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

compton: command not found

or when using sudo you get the following error message

sudo: compton: command not found

Solutions to compton: command not found

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

In Ubuntu compton is provided by compton package.

compton is:

compton is a compositor for X11, based on xcompmgr. In addition to shadows, fading and translucency, compton implements window frame opacity control, inactive window transparency, and shadows on argb windows.

This package is deprecated and will soon be removed, please switch to picom.

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

sudo apt-get -y install compton

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

You can also use apt command to install compton.

sudo apt -y install compton

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

sudo aptitude install compton

Summary

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