mmdblookup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mmdblookup: command not found
or when using sudo you get the following error message
sudo: mmdblookup: command not found
Solutions to mmdblookup: command not found
How To Fix mmdblookup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mmdblookup is provided by mmdb-bin package.
mmdb-bin is:
The libmaxminddb library provides a C library for reading MaxMind DB files, including the GeoIP2 databases from MaxMind. This is a custom binary format designed to facilitate fast lookups of IP addresses while allowing for great flexibility in the type of data associated with an address.
The MaxMind DB format is an open format. The spec is available at http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
This package contains the command line utilities to resolve IPs using the libmaxminddb library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mmdb-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mmdb-bin.
sudo apt -y install mmdb-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install mmdb-bin
Summary
In this tutorial we learn how to fix mmdblookup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.