wmacpi-cli command not found

In this troubleshooting guide we learn how to fix wmacpi-cli command not found error message

Introduction

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

wmacpi-cli: command not found

or when using sudo you get the following error message

sudo: wmacpi-cli: command not found

Solutions to wmacpi-cli: command not found

How To Fix wmacpi-cli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu wmacpi-cli is provided by wmacpi package.

wmacpi is:

This is a battery monitor that uses ACPI to query the battery status. This version should work with all recent kernels (vanilla > 2.4.21), both 2.4.x and 2.6.x.

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

sudo apt-get -y install wmacpi

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

You can also use apt command to install wmacpi.

sudo apt -y install wmacpi

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

sudo aptitude install wmacpi

Summary

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