latex2utf8 command not found

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

Introduction

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

latex2utf8: command not found

or when using sudo you get the following error message

sudo: latex2utf8: command not found

Solutions to latex2utf8: command not found

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

In Ubuntu latex2utf8 is provided by liblatex-decode-perl package.

liblatex-decode-perl is:

The module LaTeX::Decode does (obviously) the opposite of LaTeX::Encode: it converts LaTeX input to Unicode. :) It also comes with a companion utility script, latex2utf8.

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

sudo apt-get -y install liblatex-decode-perl

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

You can also use apt command to install liblatex-decode-perl.

sudo apt -y install liblatex-decode-perl

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

sudo aptitude install liblatex-decode-perl

Summary

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