mandb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mandb: command not found
or when using sudo you get the following error message
sudo: mandb: command not found
Solutions to mandb: command not found
How To Fix mandb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mandb is provided by man-db package.
man-db is:
This package provides the man command, the primary way of examining the system help files (manual pages). Other utilities provided include the whatis and apropos commands for searching the manual page database, the manpath utility for determining the manual page search path, and the maintenance utilities mandb, catman and zsoelim. man-db uses the groff suite of programs to format and display the manual pages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install man-db
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install man-db.
sudo apt -y install man-db
Or if you have aptitude installed you can use the following command.
sudo aptitude install man-db
Summary
In this tutorial we learn how to fix mandb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.