granite-demo command not found

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

Introduction

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

granite-demo: command not found

or when using sudo you get the following error message

sudo: granite-demo: command not found

Solutions to granite-demo: command not found

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

In Ubuntu granite-demo is provided by granite-demo package.

granite-demo is:

Granite is an extension of GTK+. Among other things, it provides complex widgets and convenience functions designed for use in apps built for elementary OS.

This package contains a small demo application to show Granite Widgets.

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

sudo apt-get -y install granite-demo

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

You can also use apt command to install granite-demo.

sudo apt -y install granite-demo

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

sudo aptitude install granite-demo

Summary

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