apt-cacher-ng command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
apt-cacher-ng: command not found
or when using sudo you get the following error message
sudo: apt-cacher-ng: command not found
Solutions to apt-cacher-ng: command not found
How To Fix apt-cacher-ng: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu apt-cacher-ng is provided by apt-cacher-ng package.
apt-cacher-ng is:
Apt-Cacher NG is a caching proxy for downloading packages from Debian-style software repositories (or possibly from other types).
The main principle is that a central machine hosts the proxy for a local network, and clients configure their APT setup to download through it. Apt-Cacher NG keeps a copy of all useful data that passes through it, and when a similar request is made, the cached copy of the data is delivered without being re-downloaded.
Apt-Cacher NG has been designed from scratch as a replacement for apt-cacher, but with a focus on maximizing throughput with low system resource requirements. It can also be used as replacement for apt-proxy and approx with no need to modify clients’ sources.list files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install apt-cacher-ng
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install apt-cacher-ng.
sudo apt -y install apt-cacher-ng
Or if you have aptitude installed you can use the following command.
sudo aptitude install apt-cacher-ng
Summary
In this tutorial we learn how to fix apt-cacher-ng command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.