apt-mirror command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
apt-mirror: command not found
or when using sudo you get the following error message
sudo: apt-mirror: command not found
Solutions to apt-mirror: command not found
How To Fix apt-mirror: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu apt-mirror is provided by apt-mirror package.
apt-mirror is:
A small and efficient tool that lets you mirror a part of or the whole Debian GNU/Linux distribution or any other apt sources.
Main features:
- It uses a config similar to apts <sources.list>
- It’s fully pool comply
- It supports multithreaded downloading
- It supports multiple architectures at the same time
- It can automatically remove unneeded files
- It works well on overloaded channel to internet
- It never produces an inconsistent mirror including while mirroring
- It works on all POSIX compliant systems with perl and wget
To fix this problem, we can install more using the command below.
sudo apt-get -y install apt-mirror
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install apt-mirror.
sudo apt -y install apt-mirror
Or if you have aptitude installed you can use the following command.
sudo aptitude install apt-mirror
Summary
In this tutorial we learn how to fix apt-mirror command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.