Install geoip-database-extra by entering the following commands in the terminal:
sudo apt update sudo apt install geoip-database-extra
Description:
IP lookup command line tools that use the GeoIP library (ASN/city database)
GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database. . This database simply contains IP blocks as keys, and countries as values and it should be more complete and accurate than using reverse DNS lookups. . This package contains the free GeoLite City and ASN database.
Homepage: http://www.maxmind.com/
Version: 20180315-1
Section: universe/net