vnstatd command not found

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

Introduction

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

vnstatd: command not found

or when using sudo you get the following error message

sudo: vnstatd: command not found

Solutions to vnstatd: command not found

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

In Ubuntu vnstatd is provided by vnstat package.

vnstat is:

vnStat is a network traffic monitor for Linux. It keeps a log of daily network traffic for the selected interface(s). vnStat is not a packet sniffer. The traffic information is analyzed from the /proc filesystem, so vnStat can be used without root permissions.

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

sudo apt-get -y install vnstat

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

You can also use apt command to install vnstat.

sudo apt -y install vnstat

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

sudo aptitude install vnstat

Summary

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