batalert command not found

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

Introduction

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

batalert: command not found

or when using sudo you get the following error message

sudo: batalert: command not found

Solutions to batalert: command not found

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

In Ubuntu batalert is provided by batalert package.

batalert is:

batalert (aka Battery Alert) is a tool, written in Ruby, to notify the users when their battery is either under-charged (default: < 10%) or over-charged (default: > 90%).

To run executable every n minutes, add the following as your cron job: */n * * * * batalert

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

sudo apt-get -y install batalert

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

You can also use apt command to install batalert.

sudo apt -y install batalert

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

sudo aptitude install batalert

Summary

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