makedb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
makedb: command not found
or when using sudo you get the following error message
sudo: makedb: command not found
Solutions to makedb: command not found
How To Fix makedb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu makedb is provided by libnss-db package.
libnss-db is:
nss_db is a set of C library extensions which allow Berkeley Databases to be used as a primary source of aliases, ethers, groups, hosts, networks, protocol, users, RPCs, services, and shadow passwords (instead of or in addition to using flat files or NIS). Install nss_db if your flat name service files are too large and lookups are slow.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libnss-db
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libnss-db.
sudo apt -y install libnss-db
Or if you have aptitude installed you can use the following command.
sudo aptitude install libnss-db
Summary
In this tutorial we learn how to fix makedb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.