herbstclient command not found

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

Introduction

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

herbstclient: command not found

or when using sudo you get the following error message

sudo: herbstclient: command not found

Solutions to herbstclient: command not found

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

In Ubuntu herbstclient is provided by herbstluftwm package.

herbstluftwm is:

In herbstluftwm the layout is based on splitting frames into subframes which can be split again or can be filled with windows, Tags (or workspaces or virtual desktops or …) can be added/removed at runtime. Each tag contains an own layout and exactly one tag is viewed on each monitor. The tags are monitor independent.

It is configured at runtime via ipc calls from herbstclient. So the configuration file is just a script which is run on startup.

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

sudo apt-get -y install herbstluftwm

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

You can also use apt command to install herbstluftwm.

sudo apt -y install herbstluftwm

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

sudo aptitude install herbstluftwm

Summary

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