gr2fonttest command not found

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

Introduction

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

gr2fonttest: command not found

or when using sudo you get the following error message

sudo: gr2fonttest: command not found

Solutions to gr2fonttest: command not found

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

In Ubuntu gr2fonttest is provided by libgraphite2-utils package.

libgraphite2-utils is:

Graphite is a system that can be used to create and use “smart fonts” capable of displaying writing systems with various complex behaviors, such as: contextual shaping, ligatures, reordering, split glyphs, bidirectionality, stacking diacritics and complex positioning.

This package contains gr2fonttest.

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

sudo apt-get -y install libgraphite2-utils

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

You can also use apt command to install libgraphite2-utils.

sudo apt -y install libgraphite2-utils

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

sudo aptitude install libgraphite2-utils

Summary

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