dpatch2quilt command not found

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

Introduction

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

dpatch2quilt: command not found

or when using sudo you get the following error message

sudo: dpatch2quilt: command not found

Solutions to dpatch2quilt: command not found

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

In Ubuntu dpatch2quilt is provided by quilt package.

quilt is:

Quilt manages a series of patches by keeping track of the changes each of them makes. They are logically organized as a stack, and you can apply, un-apply, refresh them easily by traveling into the stack (push/pop).

Quilt is good for managing additional patches applied to a package received as a tarball or maintained in another version control system. The stacked organization is proven to be efficient for the management of very large patch sets (more than hundred patches). As matter of fact, it was designed by and for Linux kernel hackers (Andrew Morton, from the -mm branch, is the original author), and its main use by the current upstream maintainer is to manage the (hundreds of) patches against the kernel made for the SUSE distribution.

This package provides seamless integration into Debhelper or CDBS, allowing maintainers to easily add a quilt-based patch management system in their packages. The package also provides some basic support for those not using those tools. See README.Debian for more information.

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

sudo apt-get -y install quilt

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

You can also use apt command to install quilt.

sudo apt -y install quilt

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

sudo aptitude install quilt

Summary

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