stk-demo command not found

In this troubleshooting guide we learn how to fix stk-demo command not found error message

Introduction

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

stk-demo: command not found

or when using sudo you get the following error message

sudo: stk-demo: command not found

Solutions to stk-demo: command not found

How To Fix stk-demo: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu stk-demo is provided by stk package.

stk is:

The Sound Synthesis Toolkit is a C++ library with implementations of several sound synthesis algorithms, starting from Frequency Modulation, over Physical Modelling and others. It can be used as a library, but it also provides some nice software synthesizers.

This package provides the example files for the sound synthesis toolkit.

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

sudo apt-get -y install stk

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

You can also use apt command to install stk.

sudo apt -y install stk

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

sudo aptitude install stk

Summary

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