afpstats command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
afpstats: command not found
or when using sudo you get the following error message
sudo: afpstats: command not found
Solutions to afpstats: command not found
How To Fix afpstats: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu afpstats is provided by netatalk package.
netatalk is:
Netatalk is an implementation of the Apple Filing Protocol (AFP), for offering file service (mainly) to macOS clients.
Compared to the Windows-native SMB protocol (which is also supported on macOS), the Macintosh-native AFP protocol is accessible from a different network, can be simpler to setup and faster for some operations (e.g. server-to-server copying), and some features (e.g. the backup service Time Machine) may work more reliably than over SMB.
This package contains all daemon and utility programs as well as Netatalk’s libraries.
To fix this problem, we can install more using the command below.
sudo apt-get -y install netatalk
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install netatalk.
sudo apt -y install netatalk
Or if you have aptitude installed you can use the following command.
sudo aptitude install netatalk
Summary
In this tutorial we learn how to fix afpstats command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.