Установка Mosquitto

Подготовка

sudo apt-get update
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
sudo rm mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/

Дополнительно (только для Raspberry)

sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list

Установка

sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients

Проверка

sudo service mosquitto status