ntpctl command not found

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

Introduction

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

ntpctl: command not found

or when using sudo you get the following error message

sudo: ntpctl: command not found

Solutions to ntpctl: command not found

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

In Ubuntu ntpctl is provided by openntpd package.

openntpd is:

NTP, the Network Time Protocol, is used to keep the computer clocks synchronized. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock.

This is an alternative implementation of the NTP software, made by the OpenBSD Project. It makes use of privilege separation, only implements a subset of the NTP protocol, adjusting the rate of the clock to synchronize the local clock.

Alternative packages which provide similar functionality are ntp and chrony.

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

sudo apt-get -y install openntpd

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

You can also use apt command to install openntpd.

sudo apt -y install openntpd

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

sudo aptitude install openntpd

Summary

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