miniupnpd command not found

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

Introduction

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

miniupnpd: command not found

or when using sudo you get the following error message

sudo: miniupnpd: command not found

Solutions to miniupnpd: command not found

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

In Ubuntu miniupnpd is provided by miniupnpd-iptables package.

miniupnpd-iptables is:

MiniUPnPd is a small daemon which can be installed on a NAT router to provide UPnP Internet Gateway Device and Port Mapping Protocol services, enabling clients on the LAN to ask for port redirections. It is compatible with peer-to-peer software, messaging applications, and games consoles that connect to online services (including Xbox LIVE and the PlayStation Network).

This package provides miniupnpd with iptables backend. The iptables/xtables framework has been replaced by nftables. You should consider migrating now.

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

sudo apt-get -y install miniupnpd-iptables

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

You can also use apt command to install miniupnpd-iptables.

sudo apt -y install miniupnpd-iptables

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

sudo aptitude install miniupnpd-iptables

Summary

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