ntpstat command not found

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

Introduction

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

ntpstat: command not found

or when using sudo you get the following error message

sudo: ntpstat: command not found

Solutions to ntpstat: command not found

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

In Ubuntu ntpstat is provided by ntpstat package.

ntpstat is:

This program uses an NTP mode 6 control message, which is the same as that used by the ntpq command. The ntpdc command uses NTP mode 7, details of which are elusive. For details on the format of NTP control message, see http://www.eecis.udel.edu/~mills/database/rfc/rfc1305/rfc1305b.ps.

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

sudo apt-get -y install ntpstat

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

You can also use apt command to install ntpstat.

sudo apt -y install ntpstat

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

sudo aptitude install ntpstat

Summary

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