ntpviz command not found

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

Introduction

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

ntpviz: command not found

or when using sudo you get the following error message

sudo: ntpviz: command not found

Solutions to ntpviz: command not found

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

In Ubuntu ntpviz is provided by ntpsec-ntpviz package.

ntpsec-ntpviz 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.

ntpviz analyzes NTP log files and generates statistical plots from them. The output is in the form of HTML with images. If Apache is installed, it will be served at: /ntpviz

This is part of NTPsec. NTPsec is a secure, hardened, and improved implementation derived from the original NTP project.

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

sudo apt-get -y install ntpsec-ntpviz

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

You can also use apt command to install ntpsec-ntpviz.

sudo apt -y install ntpsec-ntpviz

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

sudo aptitude install ntpsec-ntpviz

Summary

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