mosquitto_ctrl command not found

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

Introduction

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

mosquitto_ctrl: command not found

or when using sudo you get the following error message

sudo: mosquitto_ctrl: command not found

Solutions to mosquitto_ctrl: command not found

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

In Ubuntu mosquitto_ctrl is provided by mosquitto package.

mosquitto is:

This is a message broker that supports version 3.1 and 3.1.1 of the MQTT protocol.

MQTT provides a method of carrying out messaging using a publish/subscribe model. It is lightweight, both in terms of bandwidth usage and ease of implementation. This makes it particularly useful at the edge of the network where a sensor or other simple device may be implemented using an arduino for example.

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

sudo apt-get -y install mosquitto

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

You can also use apt command to install mosquitto.

sudo apt -y install mosquitto

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

sudo aptitude install mosquitto

Summary

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