dh_uwsgi command not found

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

Introduction

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

dh_uwsgi: command not found

or when using sudo you get the following error message

sudo: dh_uwsgi: command not found

Solutions to dh_uwsgi: command not found

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

In Ubuntu dh_uwsgi is provided by uwsgi-dev package.

uwsgi-dev is:

uWSGI presents a complete stack for networked/clustered web applications, implementing message/object passing, caching, RPC and process management.

This package provides development headers and tools needed to develop external uWSGI plugins, either contained in this package or pulled in through depending on development packages of dependent projects.

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

sudo apt-get -y install uwsgi-dev

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

You can also use apt command to install uwsgi-dev.

sudo apt -y install uwsgi-dev

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

sudo aptitude install uwsgi-dev

Summary

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