geoiplookup6 command not found

In this troubleshooting guide we learn how to fix geoiplookup6 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

geoiplookup6: command not found

or when using sudo you get the following error message

sudo: geoiplookup6: command not found

Solutions to geoiplookup6: command not found

How To Fix geoiplookup6: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu geoiplookup6 is provided by geoip-bin package.

geoip-bin is:

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 command line utilities to resolve the IP numbers using the GeoIP library.

To fix this problem, we can install more using the command below.

sudo apt-get -y install geoip-bin

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install geoip-bin.

sudo apt -y install geoip-bin

Or if you have aptitude installed you can use the following command.

sudo aptitude install geoip-bin

Summary

In this tutorial we learn how to fix geoiplookup6 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.