rubber-lsmod command not found

In this troubleshooting guide we learn how to fix rubber-lsmod command not found error message

Introduction

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

rubber-lsmod: command not found

or when using sudo you get the following error message

sudo: rubber-lsmod: command not found

Solutions to rubber-lsmod: command not found

How To Fix rubber-lsmod: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rubber-lsmod is provided by rubber package.

rubber is:

This is a building system for LaTeX documents. It is based on a routine that runs just as many compilations as necessary. The module system provides a great flexibility that virtually allows support for any package with no user intervention, as well as pre- and post-processing of the document. The standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex, makeindex. A good number of standard packages are supported, including graphics/graphicx with automatic conversion between various graphics formats and Metapost compilation.

Some optional parts require the installation of suggested Debian packages: imagemagick (graphics conversion), r-cran-knitr, texlive-bibtex-extra (biblatex), texlive-binaries (aleph), texlive-latex-extra (cweb, minitoc, moreverb, multibib, nomencl, ntheorem), texlive-latex-recommended (beamer, index, listings), texlive-pictures (gnuplottex), transfig (conversion from XFig format).

pythontex from texlive-extra-utils requires python3-prompt-toolkit and python3-pygments.

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

sudo apt-get -y install rubber

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

You can also use apt command to install rubber.

sudo apt -y install rubber

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

sudo aptitude install rubber

Summary

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