ntptime command not found

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

Introduction

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

ntptime: command not found

or when using sudo you get the following error message

sudo: ntptime: command not found

Solutions to ntptime: command not found

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

In Ubuntu ntptime is provided by ntpsec package.

ntpsec is:

NTP, the Network Time Protocol, is used to keep computer clocks accurate by synchronizing them over the Internet or a local network, or by following an accurate hardware receiver that interprets GPS, DCF-77, or similar time signals.

This package contains the NTP daemon and utility programs. An NTP daemon needs to be running on each host that is to have its clock accuracy controlled by NTP. The same NTP daemon is also used to provide NTP service to other hosts.

This is the NTPsec version of NTP. NTPsec is a secure, hardened, and improved implementation derived from the original NTP project. NTPsec supports Network Time Security (NTS) which provides cryptographically authenticated time.

For more information about the NTP protocol and NTP server configuration and operation, install the package “ntpsec-doc”.

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

sudo apt-get -y install ntpsec

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

You can also use apt command to install ntpsec.

sudo apt -y install ntpsec

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

sudo aptitude install ntpsec

Summary

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