pactester command not found

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

Introduction

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

pactester: command not found

or when using sudo you get the following error message

sudo: pactester: command not found

Solutions to pactester: command not found

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

In Ubuntu pactester is provided by libpacparser1 package.

libpacparser1 is:

a library to parse proxy auto-config (PAC) files. Proxy auto-config files are a vastly used proxy configuration method these days. Web browsers can use a PAC file to determine which proxy server to use or whether to go direct for a given URL. PAC files are written in JavaScript and can be programmed to return different proxy methods (e.g. “PROXY proxy1:port; DIRECT”) depending upon URL, source IP address, protocol, time of the day etc. PAC files introduce a lot of possibilities.

Needless to say, PAC files are now a widely accepted method for proxy configuration management and companies all over are using them in corporate environments. Almost all popular web browsers support PAC files. The idea behind pacparser is to make it easy to add this PAC file parsing capability to any program (C and Python supported right now).

This package contains the shared library, and pactester, a tool for testing PAC files

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

sudo apt-get -y install libpacparser1

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

You can also use apt command to install libpacparser1.

sudo apt -y install libpacparser1

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

sudo aptitude install libpacparser1

Summary

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