caffeine-indicator command not found

In this troubleshooting guide we learn how to fix caffeine-indicator command not found error message

Introduction

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

caffeine-indicator: command not found

or when using sudo you get the following error message

sudo: caffeine-indicator: command not found

Solutions to caffeine-indicator: command not found

How To Fix caffeine-indicator: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu caffeine-indicator is provided by caffeine package.

caffeine is:

Caffeine prevents the desktop from becoming idle when an application is running full-screen. A desktop indicator ‘caffeine-indicator’ supplies a manual toggle, and the command ‘caffeinate’ can be used to prevent idleness for the duration of any command.

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

sudo apt-get -y install caffeine

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

You can also use apt command to install caffeine.

sudo apt -y install caffeine

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

sudo aptitude install caffeine

Summary

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