xbatmon-simple-tray command not found

In this troubleshooting guide we learn how to fix xbatmon-simple-tray command not found error message

Introduction

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

xbatmon-simple-tray: command not found

or when using sudo you get the following error message

sudo: xbatmon-simple-tray: command not found

Solutions to xbatmon-simple-tray: command not found

How To Fix xbatmon-simple-tray: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xbatmon-simple-tray is provided by chiark-tcl-applet package.

chiark-tcl-applet is:

xbatmon-simple-tray is a battery status display, with useful tooltip, which sits in your system tray.

There is also an wrapper script, chiark-tcl-applet-wrapper, which can embed any X11 program in your system tray.

If you do not yet have an X11 system tray (eg because you are not running a desktop environment with panel), consider trayer or stalonetray.

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

sudo apt-get -y install chiark-tcl-applet

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

You can also use apt command to install chiark-tcl-applet.

sudo apt -y install chiark-tcl-applet

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

sudo aptitude install chiark-tcl-applet

Summary

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