debmirror command not found

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

Introduction

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

debmirror: command not found

or when using sudo you get the following error message

sudo: debmirror: command not found

Solutions to debmirror: command not found

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

In Ubuntu debmirror is provided by debmirror package.

debmirror is:

This program downloads and maintains a partial local Debian mirror. It can mirror any combination of architectures, distributions and sections. Files are transferred by ftp, http, hftp or rsync, and package pools are fully supported. It also does locking and updates trace files.

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

sudo apt-get -y install debmirror

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

You can also use apt command to install debmirror.

sudo apt -y install debmirror

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

sudo aptitude install debmirror

Summary

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