rdiffdir command not found

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

Introduction

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

rdiffdir: command not found

or when using sudo you get the following error message

sudo: rdiffdir: command not found

Solutions to rdiffdir: command not found

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

In Ubuntu rdiffdir is provided by duplicity package.

duplicity is:

Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.

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

sudo apt-get -y install duplicity

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

You can also use apt command to install duplicity.

sudo apt -y install duplicity

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

sudo aptitude install duplicity

Summary

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