mk4ht command not found

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

Introduction

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

mk4ht: command not found

or when using sudo you get the following error message

sudo: mk4ht: command not found

Solutions to mk4ht: command not found

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

In Ubuntu mk4ht is provided by texlive-plain-generic package.

texlive-plain-generic is:

Add-on packages and macros that work with plain TeX, often LaTeX, and occasionally other formats.

This package includes the following CTAN packages:

abbr – Simple macros supporting abreviations for Plain and LaTeX

abstyles – Adaptable BibTeX styles

apnum – Arbitrary precision numbers implemented by TeX macros

autoaligne – Align terms and members in math expressions

barr – Diagram macros by Michael Barr

bitelist – Split list, in TeX’s mouth

borceux – Diagram macros by Francois Borceux

c-pascal – Typeset Python, C and Pascal programs

catcodes – Generic handling of TeX category codes

chronosys – Drawing time-line diagrams

colorsep – Color separation

compare – Compare two strings

cweb-old –

dinat – Bibliography style for German texts

dirtree – Display trees in the style of windows explorer

docbytex – Creating documentation from source code

dowith – Apply a command to a list of items

eijkhout – Victor Eijkhout’s packages

encxvlna – Insert nonbreakable spaces, using encTeX

epigram – Display short quotations

epsf – Simple macros for EPS inclusion

epsf-dvipdfmx – Plain TeX file for using epsf.tex with (x)dvipdfmx

expkv – An expandable key=val implementation

expkv-cs – Define expandable key=val macros using expkv

expkv-def – A key-defining frontend for expkv

expkv-opt – Parse class and package options with expkv

fenixpar – One-shot changes to token registers such as \everypar

figflow – Flow text around a figure

fixpdfmag – Fix magnification in pdfTeX

fltpoint – Simple floating point arithmetic

fntproof – A programmable font test pattern generator

font-change – Macros to change text and mathematics fonts in plain TeX

fontch – Changing fonts, sizes and encodings in Plain TeX

fontname – Scheme for naming fonts in TeX

gates – Support for writing modular and customisable code

getoptk – Define macros with sophisticated options

gfnotation – Typeset Gottlob Frege’s notation in plain TeX

gobble – More gobble macros for PlainTeX and LaTeX

graphics-pln – LaTeX-style graphics for Plain TeX users

gtl – Manipulating generalized token lists

hlist – Horizontal and columned lists

hyplain – Basic support for multiple languages in Plain TeX

inputnormalization – Wrapper for XeTeX’s and LuaTeX’s input normalization

insbox – Insert pictures/boxes into paragraphs

js-misc – Miscellaneous macros from Joachim Schrod

kastrup – Convert numbers into binary, octal and hexadecimal

lambda-lists – Lists in TeX’s mouth

langcode – Simple language-dependent settings based on language codes

lecturer – On-screen presentations for (almost) all formats

letterspacing – Letter spacing

librarian – Tools to create bibliographies in TeX

listofitems – Grab items in lists using user-specified sep char

localloc – Macros for localizing TeX register allocations

mathdots – Commands to produce dots in math that respect font size

metatex – Incorporate Metafont pictures in TeX source

midnight – A set of useful macro tools

mkpattern – A utility for making hyphenation patterns

modulus – A non-destructive modulus and integer quotient operator for TeX

multido – A loop facility for Generic TeX

namedef – TeX definitions with named parameters

navigator – PDF features across formats and engines

newsletr – Macros for making newsletters with Plain TeX

nth – Generate English ordinal numbers

ofs – Macros for managing large font collections

olsak-misc – Collection of plain TeX macros written by Petr Olsak

outerhbox – Collect horizontal material for contributing to a paragraph

path – Typeset paths, making them breakable

pdf-trans – A set of macros for various transformations of TeX boxes

pitex – Documentation macros

placeins-plain – Insertions that keep their place

plainpkg – A minimal method for making generic packages

plipsum – ‘Lorem ipsum’ for Plain TeX developers

plnfss – Font selection for Plain TeX

plstmary – St. Mary’s Road font support for plain TeX

poormanlog – Logarithms and powers with (almost) 9 digits

present – Presentations with Plain TeX

pwebmac – Consolidated WEB macros for DVI and PDF output

random – Generating “random” numbers in TeX

randomlist – Deal with database, loop, and random in order to build personalized exercises

resumemac – Plain TeX macros for resumes

ruler – A typographic ruler for TeX

schemata – Print topical diagrams

shade – Shade pieces of text

simplekv – A simple key/value system for TeX and LaTeX

soul – Hyphenation for letterspacing, underlining, and more

swrule – Lines thicker in the middle than at the ends

systeme – Format systems of equations

tabto-generic – “Tab” to a measured position in the line

termmenu – The package provides support for terminal-based menus using expl3

tex-ps – TeX to PostScript generic macros and add-ons

tex4ht – Convert (La)TeX to HTML/XML

texapi – Macros to write format-independent packages

texdate – Date printing, formatting, and manipulation in TeX

texdimens – Conversion of TeX dimensions to decimals

timetable – Generate timetables

tracklang – Language and dialect tracker

treetex – Draw trees

trigonometry – Demonstration code for cos and sin in TeX macros

ulem – Package for underlining

upca – Print UPC-A barcodes

varisize – Change font size in Plain TeX

xii – Christmas silliness (English)

xii-lat – Christmas silliness (Latin)

xintsession – Interactive computing sessions (fractions, floating points, polynomials)

xlop – Calculates and displays arithmetic operations

yax – Yet Another Key System

zztex – A full-featured TeX macro package for producing books, journals, and manuals

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

sudo apt-get -y install texlive-plain-generic

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

You can also use apt command to install texlive-plain-generic.

sudo apt -y install texlive-plain-generic

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

sudo aptitude install texlive-plain-generic

Summary

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