font command not found

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

Introduction

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

font: command not found

or when using sudo you get the following error message

sudo: font: command not found

Solutions to font: command not found

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

In Ubuntu font is provided by libxgks-dev package.

libxgks-dev is:

XGKS is a level 2C implementation of the ANSI Graphical Kernel System (GKS) for use in a Unix environment with the X Window System. It supports the Fortran language binding and a C language binding based on the 1988 draft.

GKS is a basic graphics system for applications that produce computer generated two-dimensional pictures on line graphics or raster graphics output devices. It supports operator input and interaction by supplying basic functions for graphical input and picture segmentation and allows storage and dynamic modification of pictures. GKS is no longer under active development, but used in several existing graphical toolkits.

It is not expected that XGKS will gather any new users, but factoring it out simplifies the size and maintenance of some other packages.

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

sudo apt-get -y install libxgks-dev

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

You can also use apt command to install libxgks-dev.

sudo apt -y install libxgks-dev

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

sudo aptitude install libxgks-dev

Summary

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