annex-to-annex-reinject command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
annex-to-annex-reinject: command not found
or when using sudo you get the following error message
sudo: annex-to-annex-reinject: command not found
Solutions to annex-to-annex-reinject: command not found
How To Fix annex-to-annex-reinject: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu annex-to-annex-reinject is provided by libgit-annex-perl package.
libgit-annex-perl is:
Perl interface to git-annex repositories, and some scripts which make use of this interface. Requires git-annex installed to be useful.
Git::Annex – class representing a git-annex repository
annex-to-annex – use hardlinks to migrate files between git annex repos
annex-review-unused – interactively process git annex unused
output
To fix this problem, we can install more using the command below.
sudo apt-get -y install libgit-annex-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libgit-annex-perl.
sudo apt -y install libgit-annex-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libgit-annex-perl
Summary
In this tutorial we learn how to fix annex-to-annex-reinject command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.