dphys-config command not found

In this troubleshooting guide we learn how to fix dphys-config command not found error message

Introduction

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

dphys-config: command not found

or when using sudo you get the following error message

sudo: dphys-config: command not found

Solutions to dphys-config: command not found

How To Fix dphys-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dphys-config is provided by dphys-config package.

dphys-config is:

This project is aimed at automatically installing (and keeping update) site specific config files on many hosts, after preprocessing them (conditional content and include files and include sections).

It’s installed on the client receiving the configuration files and fetches them regularly via cron-jobs or on demand from the commandline.

It also triggers postinstall scripts whenever their associated config file has been changed. It can also remove config files, including running an preremove script before doing so. All this is driven by an simple config file list.

dphys-config is capable of reporting update failure or success to a Xymon (formerly Hobbit) monitoring server.

dphys-config features an interactive mode and a non-interactive diff mode to check what would be updated.

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

sudo apt-get -y install dphys-config

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

You can also use apt command to install dphys-config.

sudo apt -y install dphys-config

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

sudo aptitude install dphys-config

Summary

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