nss_updatedb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nss_updatedb: command not found
or when using sudo you get the following error message
sudo: nss_updatedb: command not found
Solutions to nss_updatedb: command not found
How To Fix nss_updatedb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nss_updatedb is provided by nss-updatedb package.
nss-updatedb is:
This package contains a script, nss_updatedb, which can be used to maintain local caches of user and group directories. These can then be used by the DB Name Service Switch module (libnss-db) to provide name service when the system is offline.
These tools are designed to work with libpam-ldap and libnss-ldap.
To fix this problem, we can install more using the command below.
sudo apt-get -y install nss-updatedb
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nss-updatedb.
sudo apt -y install nss-updatedb
Or if you have aptitude installed you can use the following command.
sudo aptitude install nss-updatedb
Summary
In this tutorial we learn how to fix nss_updatedb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.