mirrorbits command not found

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

Introduction

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

mirrorbits: command not found

or when using sudo you get the following error message

sudo: mirrorbits: command not found

Solutions to mirrorbits: command not found

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

In Ubuntu mirrorbits is provided by mirrorbits package.

mirrorbits is:

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors. It offers a simple and economic way to create a Content Delivery Network layer using a pure software stack. It is primarily designed for the distribution of large-scale Open-Source projects with a lot of traffic.

Main Features:

  • Blazing fast, can reach 8K QPS on a single laptop
  • Easy to deploy and maintain, everything is packed in a single binary
  • Automatic synchronization with the mirrors over rsync or FTP
  • Response can be either JSON or HTTP redirect
  • Support partial repositories
  • Complete checksum / size control
  • Realtime monitoring and reports
  • Disable misbehaving mirrors without human intervention
  • Realtime decision making based on location, AS number and defined rules
  • Smart load-balancing over multiple mirrors in the same area to avoid hotspots
  • Ability to adjust the weight of each mirror
  • Limit access to a country, region or ASN for any mirror
  • Clustering (multiple mirrorbits instances)
  • High-availability using redis-sentinel
  • Automatically fix timezone offsets for broken mirrors
  • Realtime statistics per file / mirror / date
  • Realtime reconfiguration
  • Seamless binary upgrade (aka zero downtime upgrade)
  • Mirmon support
  • Full IPv6 support
  • more…

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

sudo apt-get -y install mirrorbits

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

You can also use apt command to install mirrorbits.

sudo apt -y install mirrorbits

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

sudo aptitude install mirrorbits

Summary

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