showfont command not found

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

Introduction

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

showfont: command not found

or when using sudo you get the following error message

sudo: showfont: command not found

Solutions to showfont: command not found

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

In Ubuntu showfont is provided by x11-xfs-utils package.

x11-xfs-utils is:

x11-xfs-utils provides a set of utility programs useful on a system that uses an X font server.

The programs in this package include:

  • fslsfonts, a tool that lists fonts served by an X font server;
  • fstobdf, a tool which retrieves a font in BDF format from an X font server;
  • showfont, a font dumper for use with an X font server;
  • xfsinfo, an X font server information utility.

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

sudo apt-get -y install x11-xfs-utils

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

You can also use apt command to install x11-xfs-utils.

sudo apt -y install x11-xfs-utils

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

sudo aptitude install x11-xfs-utils

Summary

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