approx command not found

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

Introduction

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

approx: command not found

or when using sudo you get the following error message

sudo: approx: command not found

Solutions to approx: command not found

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

In Ubuntu approx is provided by approx package.

approx is:

Approx is an HTTP-based proxy server for Debian-style package archives. It fetches files from remote repositories on demand, and caches them for local use.

Approx saves time and network bandwidth if you need to install or upgrade .deb packages for a number of machines on a local network. Each package is downloaded from a remote site only once, regardless of how many local clients install it. The approx cache typically requires a few gigabytes of disk space.

Approx also simplifies the administration of client machines: repository locations need only be changed in approx’s configuration file, not in every client’s /etc/apt/sources.list file.

Approx can be used as a replacement for apt-proxy, with no need to modify clients’ /etc/apt/sources.list files, or as an alternative to apt-cacher.

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

sudo apt-get -y install approx

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

You can also use apt command to install approx.

sudo apt -y install approx

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

sudo aptitude install approx

Summary

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