bdf2psf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
bdf2psf: command not found
or when using sudo you get the following error message
sudo: bdf2psf: command not found
Solutions to bdf2psf: command not found
How To Fix bdf2psf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu bdf2psf is provided by bdf2psf package.
bdf2psf is:
This package provides a command-line converter that can be used in scripts to build console fonts from BDF sources automatically. The converter comes with a collection of font encodings that cover many of the world’s languages. The output font can use a different character encoding from the input. When the source font does not define a glyph for a particular symbol in the encoding table, that glyph position in the console font is not wasted but used for another symbol.
When deciding about the position in the font for a particular glyph, the converter takes into account that in text video modes the video adapter copies the eighth column of the glyph matrix of symbols positioned in the pseudographic area to the ninth column. In order to create fonts for text video modes, the width of the glyph matrix of the source BDF font should be seven, eight, or nine pixels; otherwise the converter creates fonts suitable for framebuffer only.
To fix this problem, we can install more using the command below.
sudo apt-get -y install bdf2psf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install bdf2psf.
sudo apt -y install bdf2psf
Or if you have aptitude installed you can use the following command.
sudo aptitude install bdf2psf
Summary
In this tutorial we learn how to fix bdf2psf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.