upnpc command not found

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

Introduction

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

upnpc: command not found

or when using sudo you get the following error message

sudo: upnpc: command not found

Solutions to upnpc: command not found

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

In Ubuntu upnpc is provided by miniupnpc package.

miniupnpc is:

The UPnP protocol is supported by most home adsl/cable routers and Microsoft Windows 2K/XP. The aim of the MiniUPnP project is to bring a free software solution to support the “Internet Gateway Device” part of the protocol. The MediaServer/MediaRenderer UPnP protocol is also becoming very popular.

Miniupnpc aims at the simplest library possible, with the smallest footprint and no dependencies to other libraries such as XML parsers or HTTP implementations. All the code is pure ANSI C. Compiled on a x86 PC, the miniupnp client library have less than 15KB code size. For instance, the upnpc sample program is around 20KB. The miniupnp daemon is much smaller than any other IGD daemon and is ideal for using on low memory device for this reason.

This package is an example client for the library.

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

sudo apt-get -y install miniupnpc

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

You can also use apt command to install miniupnpc.

sudo apt -y install miniupnpc

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

sudo aptitude install miniupnpc

Summary

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