dh_ppp command not found

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

Introduction

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

dh_ppp: command not found

or when using sudo you get the following error message

sudo: dh_ppp: command not found

Solutions to dh_ppp: command not found

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

In Ubuntu dh_ppp is provided by ppp-dev package.

ppp-dev is:

The Point-to-Point Protocol provides a standard way to transmit datagrams over a serial link, as well as a standard way for the machines at either end of the link to negotiate various optional characteristics of the link.

This package provides files needed to build pppd-related software.

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

sudo apt-get -y install ppp-dev

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

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

sudo apt -y install ppp-dev

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

sudo aptitude install ppp-dev

Summary

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