slonik_subscribe_set command not found

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

Introduction

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

slonik_subscribe_set: command not found

or when using sudo you get the following error message

sudo: slonik_subscribe_set: command not found

Solutions to slonik_subscribe_set: command not found

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

In Ubuntu slonik_subscribe_set is provided by slony1-2-bin package.

slony1-2-bin is:

Slony-I is an asynchronous master-to-multiple-slaves replication system for PostgreSQL with cascading and slave promotion.

This package contains the slon daemon and the slonik administration tool. It should be installed on those hosts where Slony-I daemons are to be run or administered, which usually, but not necessarily, are the hosts where the database server nodes are running.

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

sudo apt-get -y install slony1-2-bin

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

You can also use apt command to install slony1-2-bin.

sudo apt -y install slony1-2-bin

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

sudo aptitude install slony1-2-bin

Summary

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