lgrind command not found

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

Introduction

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

lgrind: command not found

or when using sudo you get the following error message

sudo: lgrind: command not found

Solutions to lgrind: command not found

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

In Ubuntu lgrind is provided by lgrind package.

lgrind is:

LGrind is a pretty printer for a large number of programming languages using LaTeX. It is in the form of a separate preprocessor.

The licence is non-free, as it contains a no-sale clause. You might consider using the listings package instead, which is free; it also claims to be able to read the language definitions of LGrind. LGrind’s output tends to be prettier, though, especially if you prefer non-monospaced fonts.

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

sudo apt-get -y install lgrind

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

You can also use apt command to install lgrind.

sudo apt -y install lgrind

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

sudo aptitude install lgrind

Summary

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