remove-duplicates command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
remove-duplicates: command not found
or when using sudo you get the following error message
sudo: remove-duplicates: command not found
Solutions to remove-duplicates: command not found
How To Fix remove-duplicates: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu remove-duplicates is provided by recoverjpeg package.
recoverjpeg is:
recoverjpeg tries to recover JFIF (JPEG) pictures and MOV movies from a peripheral. This may be useful if you mistakenly overwrite a partition or if a device such as a digital camera memory card is bogus.
This package provides these executables: recoverjpeg, recovermov, remove-duplicates and sort-pictures. The remove-duplicates is useful to remove duplicate files found. sort-pictures can be used to sort pictures according to exif date.
This package acts as a carver (data carving) and is useful in forensics investigations.
To fix this problem, we can install more using the command below.
sudo apt-get -y install recoverjpeg
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install recoverjpeg.
sudo apt -y install recoverjpeg
Or if you have aptitude installed you can use the following command.
sudo aptitude install recoverjpeg
Summary
In this tutorial we learn how to fix remove-duplicates command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.