latex-mk command not found

In this troubleshooting guide we learn how to fix latex-mk command not found error message

Introduction

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

latex-mk: command not found

or when using sudo you get the following error message

sudo: latex-mk: command not found

Solutions to latex-mk: command not found

How To Fix latex-mk: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu latex-mk is provided by latex-mk package.

latex-mk is:

LaTeX-Mk is a collection of Makefile fragments and shell scripts for managing small to large sized LaTeX projects. The typical LaTeX-Mk input file is simply a series of variable definitions in a Makefile for the project. After creating a simple Makefile the user can easily perform all required steps to do such tasks as: preview the document, print the document, or produce a PDF file. LaTeX-Mk will keep track of files that have changed and how to run the various programs that are needed to produce the output.

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

sudo apt-get -y install latex-mk

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

You can also use apt command to install latex-mk.

sudo apt -y install latex-mk

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

sudo aptitude install latex-mk

Summary

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