sar2pcp command not found

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

Introduction

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

sar2pcp: command not found

or when using sudo you get the following error message

sudo: sar2pcp: command not found

Solutions to sar2pcp: command not found

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

In Ubuntu sar2pcp is provided by pcp-import-sar2pcp package.

pcp-import-sar2pcp is:

Performance Co-Pilot (PCP) front-end tool for importing data from sar into standard PCP archive logs for replay with any PCP monitoring tool (such as pmie, pmlogsummary, pmchart or pmdumptext).

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

sudo apt-get -y install pcp-import-sar2pcp

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

You can also use apt command to install pcp-import-sar2pcp.

sudo apt -y install pcp-import-sar2pcp

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

sudo aptitude install pcp-import-sar2pcp

Summary

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