batctl command not found

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

Introduction

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

batctl: command not found

or when using sudo you get the following error message

sudo: batctl: command not found

Solutions to batctl: command not found

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

In Ubuntu batctl is provided by batctl package.

batctl is:

This package contains batctl, which serves as configuration utility, monitoring and debugging application. It allows one to modify the module parameters, reading the logfiles and tables, decapsulate embedded packets on the fly, traceroute to and ping mac addresses, generate sequence number graphs for the Layer 2 Mesh B.A.T.M.A.N.

B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a new routing protocol for multi-hop ad-hoc mesh networks. B.A.T.M.A.N.-advanced is the implementation of this protocol on ISO/OSI Layer 2, allowing mesh networks to be used as a virtual switch. With this approach, LANs and WANs can be easily integrated, and more protocols (like DHCP, IPv6) are supported.

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

sudo apt-get -y install batctl

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

You can also use apt command to install batctl.

sudo apt -y install batctl

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

sudo aptitude install batctl

Summary

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