pknlusr command not found

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

Introduction

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

pknlusr: command not found

or when using sudo you get the following error message

sudo: pknlusr: command not found

Solutions to pknlusr: command not found

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

In Ubuntu pknlusr 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 pknlusr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.