catdvi command not found

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

Introduction

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

catdvi: command not found

or when using sudo you get the following error message

sudo: catdvi: command not found

Solutions to catdvi: command not found

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

In Ubuntu catdvi is provided by catdvi package.

catdvi is:

CatDVI translates a TeX Device Independent (DVI) file into a readable plaintext file. It aims to generate high-quality output that reproduces all aspects of the DVI file within the limits of the output medium. CatDVI uses Unicode internally and can output ASCII, ISO Latin 1 and UTF-8 Unicode.

CatDVI can be used for previewing TeX documents on character-cell displays such as traditional terminals and terminal emulators. It is also possible to use it in generation of plain text documents from TeX source, assuming that the document is written with this conversion in mind.

CatDVI is under development and as such yet incomplete. However, it is quite useful even in its current form and already outperforms some of its competition in some areas.

CatDVI requires that the TFM files for all fonts used in its input DVI files are installed or can be generated by kpathsea.

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

sudo apt-get -y install catdvi

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

You can also use apt command to install catdvi.

sudo apt -y install catdvi

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

sudo aptitude install catdvi

Summary

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