thg command not found

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

Introduction

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

thg: command not found

or when using sudo you get the following error message

sudo: thg: command not found

Solutions to thg: command not found

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

In Ubuntu thg is provided by tortoisehg package.

tortoisehg is:

TortoiseHg provides a graphical tool for interacting with the distributed revision control system Mercurial. GUI support is provided for over a dozen operations, including add files, commit changes, manage ignore filter, view change log, merge, recover/rollback, edit configuration, synchronize repository, and many others. The highlight is the interactive commit tool which allows easy selection of diffs from multiple files and packaging into changesets, and which is more powerful and easier to use than available alternatives such as qct and hgct (commit-tool).

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

sudo apt-get -y install tortoisehg

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

You can also use apt command to install tortoisehg.

sudo apt -y install tortoisehg

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

sudo aptitude install tortoisehg

Summary

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