chronyc command not found

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

Introduction

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

chronyc: command not found

or when using sudo you get the following error message

sudo: chronyc: command not found

Solutions to chronyc: command not found

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

In Ubuntu chronyc is provided by chrony package.

chrony is:

It consists of a pair of programs:

chronyd: This is a daemon which runs in background on the system. It obtains measurements (e.g. via the network) of the system’s offset relative to other systems and adjusts the system time accordingly. For isolated systems, the user can periodically enter the correct time by hand (using ‘chronyc’). In either case ‘chronyd’ determines the rate at which the computer gains or loses time, and compensates for this. Chronyd implements the NTP protocol and can act as either a client or a server.

chronyc: This is a command-line driven control and monitoring program. An administrator can use this to fine-tune various parameters within the daemon, add or delete servers etc whilst the daemon is running.

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

sudo apt-get -y install chrony

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

You can also use apt command to install chrony.

sudo apt -y install chrony

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

sudo aptitude install chrony

Summary

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