pppoe-discovery command not found

In this troubleshooting guide we learn how to fix pppoe-discovery command not found error message

Introduction

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

pppoe-discovery: command not found

or when using sudo you get the following error message

sudo: pppoe-discovery: command not found

Solutions to pppoe-discovery: command not found

How To Fix pppoe-discovery: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pppoe-discovery is provided by ppp package.

ppp 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 is most commonly used to manage a modem for dial-up or certain kinds of broadband connections.

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

sudo apt-get -y install ppp

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

You can also use apt command to install ppp.

sudo apt -y install ppp

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

sudo aptitude install ppp

Summary

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