sntp command not found

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

Introduction

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

sntp: command not found

or when using sudo you get the following error message

sudo: sntp: command not found

Solutions to sntp: command not found

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

In Ubuntu sntp is provided by sntp package.

sntp 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, NIST or similar time signals.

sntp can be used as an SNTP client to query a NTP or SNTP server and either display the time or set the local system’s time. It is not sufficient, however, for maintaining an accurate clock in the long run.

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

sudo apt-get -y install sntp

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

You can also use apt command to install sntp.

sudo apt -y install sntp

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

sudo aptitude install sntp

Summary

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