ahcpd command not found

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

Introduction

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

ahcpd: command not found

or when using sudo you get the following error message

sudo: ahcpd: command not found

Solutions to ahcpd: command not found

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

In Ubuntu ahcpd is provided by ahcpd package.

ahcpd is:

AHCP is an autoconfiguration protocol for IPv6 and dual-stack IPv6/IPv4 networks designed to be used in place of router discovery and DHCP on networks where it is difficult or impossible to configure a server within every link-layer broadcast domain, for example mobile ad-hoc networks. AHCP will automatically configure the IPv6 prefix, an IPv4 address for every host, the routing protocol, the DNS server and the NTP server. It is currently able to configure hosts for static routing, for use of the OLSR protocol, or for use of the Babel protocol. AHCP is extensible, so adding support for other routing protocols should be easy.

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

sudo apt-get -y install ahcpd

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

You can also use apt command to install ahcpd.

sudo apt -y install ahcpd

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

sudo aptitude install ahcpd

Summary

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