cpufreq-aperf command not found

In this troubleshooting guide we learn how to fix cpufreq-aperf command not found error message

Introduction

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

cpufreq-aperf: command not found

or when using sudo you get the following error message

sudo: cpufreq-aperf: command not found

Solutions to cpufreq-aperf: command not found

How To Fix cpufreq-aperf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cpufreq-aperf is provided by cpufrequtils package.

cpufrequtils is:

This package contains two utilities for inspecting and setting the CPU frequency through both the sysfs and procfs CPUFreq kernel interfaces.

By default, it also enables CPUFreq at boot time if the correct CPU driver is found.

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

sudo apt-get -y install cpufrequtils

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

You can also use apt command to install cpufrequtils.

sudo apt -y install cpufrequtils

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

sudo aptitude install cpufrequtils

Summary

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