geoipupdate command not found

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

Introduction

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

geoipupdate: command not found

or when using sudo you get the following error message

sudo: geoipupdate: command not found

Solutions to geoipupdate: command not found

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

In Ubuntu geoipupdate is provided by geoipupdate package.

geoipupdate is:

The GeoIP Update program performs automatic updates of GeoIP2 and GeoLite2 binary databases, as supplied by MaxMind. These may be MaxMind’s paid products, or their GeoLite variants that are less accurate but provided without charge.

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

sudo apt-get -y install geoipupdate

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

You can also use apt command to install geoipupdate.

sudo apt -y install geoipupdate

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

sudo aptitude install geoipupdate

Summary

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