hg-ssh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hg-ssh: command not found
or when using sudo you get the following error message
sudo: hg-ssh: command not found
Solutions to hg-ssh: command not found
How To Fix hg-ssh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hg-ssh is provided by mercurial-common package.
mercurial-common is:
Mercurial is a fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects.
This package contains the architecture independent components of Mercurial, and is generally useless without the mercurial package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mercurial-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mercurial-common.
sudo apt -y install mercurial-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install mercurial-common
Summary
In this tutorial we learn how to fix hg-ssh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.