xt_geoip_query command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xt_geoip_query: command not found
or when using sudo you get the following error message
sudo: xt_geoip_query: command not found
Solutions to xt_geoip_query: command not found
How To Fix xt_geoip_query: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xt_geoip_query is provided by xtables-addons-common package.
xtables-addons-common is:
Xtables-addons provides extra modules for iptables not present in the kernel, and is the successor of patch-o-matic. Extensions includes new targets like TEE, TARPIT, CHAOS, or modules like geoip and account.
This package provides the userspace libraries for iptables to use extensions in the xtables-addons-modules package.
Note: this package is only useful with a corresponding xtables-addons-dkms package, which you may produce with module-assistant:
module-assistant auto-install xtables-addons-source
To fix this problem, we can install more using the command below.
sudo apt-get -y install xtables-addons-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xtables-addons-common.
sudo apt -y install xtables-addons-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install xtables-addons-common
Summary
In this tutorial we learn how to fix xt_geoip_query command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.