patchedit command not found

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

Introduction

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

patchedit: command not found

or when using sudo you get the following error message

sudo: patchedit: command not found

Solutions to patchedit: command not found

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

In Ubuntu patchedit is provided by pkg-perl-tools package.

pkg-perl-tools is:

The Debian Perl Group works on packaging Perl modules for Debian. This collection contains the tools which help the group with day-to-day work, like filing ITPs, forwarding bugs and patches upstream, taking over a package for the group, maintaining proper git repository structure and so on. These include dpt, bts-retitle, patchedit, and pristine-orig.

Additionally it depends on, recommends or suggests separately packaged tools the Debian Perl Group uses.

It also includes some Debian Perl Group specific lintian checks. Add “profile=pkg-perl” (“LINTIAN_PROFILE=pkg-perl” for lintian versions before 2.79.0) to your ~/.lintianrc to use them after installing this package.

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

sudo apt-get -y install pkg-perl-tools

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

You can also use apt command to install pkg-perl-tools.

sudo apt -y install pkg-perl-tools

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

sudo aptitude install pkg-perl-tools

Summary

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