chg command not found

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

Introduction

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

chg: command not found

or when using sudo you get the following error message

sudo: chg: command not found

Solutions to chg: command not found

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

In Ubuntu chg is provided by mercurial package.

mercurial is:

Mercurial is a fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects.

Its features include:

  • O(1) delta-compressed file storage and retrieval scheme
  • Complete cross-indexing of files and changesets for efficient exploration of project history
  • Robust SHA1-based integrity checking and append-only storage model
  • Decentralized development model with arbitrary merging between trees
  • High-speed HTTP-based network merge protocol
  • Easy-to-use command-line interface
  • Integrated stand-alone web interface
  • Small Python codebase

This package contains the architecture dependent files.

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

sudo apt-get -y install mercurial

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

You can also use apt command to install mercurial.

sudo apt -y install mercurial

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

sudo aptitude install mercurial

Summary

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