repstopdf command not found

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

Introduction

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

repstopdf: command not found

or when using sudo you get the following error message

sudo: repstopdf: command not found

Solutions to repstopdf: command not found

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

In Ubuntu repstopdf is provided by texlive-font-utils package.

texlive-font-utils is:

Programs for conversion between font formats, testing fonts, virtual fonts, .gf and .pk manipulation, mft, fontinst, etc. Manipulating OpenType, TrueType, Type 1,and for manipulation of PostScript and other image formats.

This package includes the following CTAN packages:

accfonts – Utilities to derive new fonts from existing ones

afm2pl – AFM font metrics to TeX pl converter.

albatross – Find fonts that contain a given glyph

dosepsbin – Deal with DOS binary EPS files

dvipsconfig – Collection of dvips PostScript headers

epstopdf – Convert EPS to PDF using Ghostscript

fontinst – Help with installing fonts for TeX and LaTeX

fontools – Tools to simplify using fonts (especially TT/OTF ones)

fontware – Tools for virtual font metrics

luafindfont – Search fonts in the LuaTeX font database

metatype1 – Generate Type 1 fonts from MetaPost

mf2pt1 – Convert stylized Metafont to PostScript Type 1

ps2eps – Produce Encapsulated PostScript from PostScript

ps2pk – Generate a PK font from an Adobe Type 1 font

ttfutils – convert TrueType to TFM and PK fonts

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

sudo apt-get -y install texlive-font-utils

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

You can also use apt command to install texlive-font-utils.

sudo apt -y install texlive-font-utils

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

sudo aptitude install texlive-font-utils

Summary

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