pdfatfi command not found

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

Introduction

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

pdfatfi: command not found

or when using sudo you get the following error message

sudo: pdfatfi: command not found

Solutions to pdfatfi: command not found

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

In Ubuntu pdfatfi is provided by texlive-latex-recommended package.

texlive-latex-recommended is:

A collection of recommended add-on packages for LaTeX which have widespread use, and the release candidate formats latex-dev, etc.

This package includes the following CTAN packages:

anysize – A simple package to set up document margins

attachfile2 – Attach files into PDF

beamer – A LaTeX class for producing presentations and slides

booktabs – Publication quality tables in LaTeX

breqn – Automatic line breaking of displayed equations

caption – Customising captions in floating environments

cite – Improved citation handling in LaTeX

cmap – Make PDF files searchable and copyable

crop – Support for cropmarks

ctable – Flexible typesetting of table and figure floats using key/value directives

eso-pic – Add picture commands (or backgrounds) to every page

etoolbox – e-TeX tools for LaTeX

euenc – Unicode font encoding definitions for XeTeX

euler – Use AMS Euler fonts for math

everysel – Provides hooks into \selectfont

everyshi – Take action at every \shipout

extsizes – Extend the standard classes’ size options

fancybox – Variants of \fbox and other games with boxes

fancyref – A LaTeX package for fancy cross-referencing

fancyvrb – Sophisticated verbatim text

filehook – Hooks for input files

float – Improved interface for floating objects

fontspec – Advanced font selection in XeLaTeX and LuaLaTeX

footnotehyper – hyperref aware footnote.sty

fp – Fixed point arithmetic

grffile – Extended file name support for graphics (legacy package)

hologo – A collection of logos with bookmark support

index – Extended index for LaTeX including multiple indexes

infwarerr – Complete set of information/warning/error message macros

jknapltx – Miscellaneous packages by Joerg Knappen

koma-script – A bundle of versatile classes and packages

l3experimental – Experimental LaTeX3 concepts

latexbug – Bug-classification for LaTeX related bugs

lineno – Line numbers on paragraphs

listings – Typeset source code listings using LaTeX

lwarp – Converts LaTeX to HTML

mathspec – Specify arbitrary fonts for mathematics in XeTeX

mathtools – Mathematical tools to use with amsmath

mdwtools – Miscellaneous tools by Mark Wooding

memoir – Typeset fiction, non-fiction and mathematical books

metalogo – Extended TeX logo macros

microtype – Subliminal refinements towards typographical perfection

ms – Various LaTeX packages by Martin Schroder

newfloat – Define new floating environments

ntgclass – “European” versions of standard classes

parskip – Layout with zero \parindent, non-zero \parskip

pdflscape – Make landscape pages display as landscape

pdfmanagement-testphase – LaTeX PDF management testphase bundle

pdfpages – Include PDF documents in LaTeX

pdftexcmds – LuaTeX support for pdfTeX utility functions

polyglossia – An alternative to babel for XeLaTeX and LuaLaTeX

psfrag – Replace strings in encapsulated PostScript figures

ragged2e – Alternative versions of “ragged”-type commands

rcs – Use RCS (revision control system) tags in LaTeX documents

sansmath – Maths in a sans font

section – Modifying section commands in LaTeX

seminar – Make overhead slides

sepnum – Print numbers in a “friendly” format

setspace – Set space between lines

subfig – Figures broken into subfigures

textcase – Case conversion ignoring mathematics, etc

thumbpdf – Thumbnails for pdfTeX and dvips/ps2pdf

translator – Easy translation of strings in LaTeX

typehtml – Typeset HTML directly from LaTeX

ucharcat – Implementation of the (new in 2015) XeTeX \Ucharcat command in lua, for LuaTeX

underscore – Control the behaviour of “_” in text

unicode-math – Unicode mathematics support for XeTeX and LuaTeX

xcolor – Driver-independent color extensions for LaTeX and pdfLaTeX

xkeyval – Extension of the keyval package

xltxtra – “Extras” for LaTeX users of XeTeX

xunicode – Generate Unicode characters from accented glyphs

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

sudo apt-get -y install texlive-latex-recommended

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

You can also use apt command to install texlive-latex-recommended.

sudo apt -y install texlive-latex-recommended

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

sudo aptitude install texlive-latex-recommended

Summary

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