editdiff command not found

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

Introduction

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

editdiff: command not found

or when using sudo you get the following error message

sudo: editdiff: command not found

Solutions to editdiff: command not found

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

In Ubuntu editdiff is provided by patchutils package.

patchutils is:

This package includes the following utilities:

  • combinediff creates a cumulative patch from two incremental patches
  • dehtmldiff extracts a diff from an HTML page
  • filterdiff extracts or excludes diffs from a diff file
  • fixcvsdiff fixes diff files created by CVS that “patch” mis-interprets
  • flipdiff exchanges the order of two patches
  • grepdiff shows which files are modified by a patch matching a regex
  • interdiff shows differences between two unified diff files
  • lsdiff shows which files are modified by a patch
  • recountdiff recomputes counts and offsets in unified context diffs
  • rediff and editdiff fix offsets and counts of a hand-edited diff
  • splitdiff separates out incremental patches
  • unwrapdiff demangles patches that have been word-wrapped

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

sudo apt-get -y install patchutils

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

You can also use apt command to install patchutils.

sudo apt -y install patchutils

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

sudo aptitude install patchutils

Summary

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