scratch command not found

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

Introduction

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

scratch: command not found

or when using sudo you get the following error message

sudo: scratch: command not found

Solutions to scratch: command not found

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

In Ubuntu scratch is provided by scratch package.

scratch is:

Scratch is an easy, interactive, collaborative programming environment designed for creation of interactive stories, animations, games, music, and art – and sharing these on the web. Scratch is designed to help young people (ages 8 and up) develop 21st century learning skills. As they create Scratch projects, young people learn important mathematical and computational ideas, while also gaining a deeper understanding of the process of design.

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

sudo apt-get -y install scratch

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

You can also use apt command to install scratch.

sudo apt -y install scratch

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

sudo aptitude install scratch

Summary

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