sonic-pi command not found

In this troubleshooting guide we learn how to fix sonic-pi command not found error message

Introduction

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

sonic-pi: command not found

or when using sudo you get the following error message

sudo: sonic-pi: command not found

Solutions to sonic-pi: command not found

How To Fix sonic-pi: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sonic-pi is provided by sonic-pi package.

sonic-pi is:

A free live coding synth for everyone. Originally designed to support computing and music lessons within schools. Use code to compose and perform in classical and contemporary styles ranging from Canons to Dubstep.

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

sudo apt-get -y install sonic-pi

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

You can also use apt command to install sonic-pi.

sudo apt -y install sonic-pi

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

sudo aptitude install sonic-pi

Summary

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