otfcompress command not found

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

Introduction

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

otfcompress: command not found

or when using sudo you get the following error message

sudo: otfcompress: command not found

Solutions to otfcompress: command not found

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

In Ubuntu otfcompress is provided by otf-trace package.

otf-trace is:

OTF is a standard trace format used by several high-performance tools, using an ASCII encoding, which supports multiple streams. The libotf provides support for reading/writing them.

This package contains programs to manipulate otf files.

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

sudo apt-get -y install otf-trace

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

You can also use apt command to install otf-trace.

sudo apt -y install otf-trace

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

sudo aptitude install otf-trace

Summary

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