power-calibrate command not found

In this troubleshooting guide we learn how to fix power-calibrate command not found error message

Introduction

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

power-calibrate: command not found

or when using sudo you get the following error message

sudo: power-calibrate: command not found

Solutions to power-calibrate: command not found

How To Fix power-calibrate: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu power-calibrate is provided by power-calibrate package.

power-calibrate is:

Power-calibrate calibrates the power consumption of a mobile device that has a battery power source or of an modern Intel device has RAPL support. It will attempt to calculate the power usage of 1% of CPU utilisation (and 1 instruction and 1 cpu cycle if perf is available).

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

sudo apt-get -y install power-calibrate

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

You can also use apt command to install power-calibrate.

sudo apt -y install power-calibrate

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

sudo aptitude install power-calibrate

Summary

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