dpatch command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dpatch: command not found
or when using sudo you get the following error message
sudo: dpatch: command not found
Solutions to dpatch: command not found
How To Fix dpatch: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dpatch is provided by dpatch package.
dpatch is:
dpatch is an easy to use patch system for Debian packages, somewhat similar to the dbs package, but much simpler to use.
It lets you store patches and other simple customization templates in debian/patches and otherwise does not require much reorganization of your source tree. To get the patches applied at build time you simply need to include a makefile snippet and then depend on the patch/unpatch target in the build or clean stage of debian/rules - or you can use the dpatch patching script directly.
It can easily apply patches only on specific architectures if needed.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dpatch
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dpatch.
sudo apt -y install dpatch
Or if you have aptitude installed you can use the following command.
sudo aptitude install dpatch
Summary
In this tutorial we learn how to fix dpatch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.