pkgsync command not found

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

Introduction

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

pkgsync: command not found

or when using sudo you get the following error message

sudo: pkgsync: command not found

Solutions to pkgsync: command not found

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

In Ubuntu pkgsync is provided by pkgsync package.

pkgsync is:

pkgsync is a tool for keeping multiple machines reasonably similar and clean. Packages can either be in a must be installed', may be installed’ or must not be installed' list (which is presumed to be distributed separately using a tool such as rdist or cfengine). pkgsync will take care of meeting the demands put down in the lists, and then removing everything that is not in the must’ or `may’ list and is not necessary for their operations (as determined by aptitude).

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

sudo apt-get -y install pkgsync

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

You can also use apt command to install pkgsync.

sudo apt -y install pkgsync

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

sudo aptitude install pkgsync

Summary

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