---
title: Install mirrorselect on Debian using the Snap Store | Snapcraft
description: Get the latest version of mirrorselect for on Debian - Mirrorselect is
  a tool to select the fastest Ubuntu mirrors
url: https://snapcraft.io/install/mirrorselect/debian
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install mirrorselect on **Debian**

# mirrorselect

[David Haukeness (haukened)](https://snapcraft.io/publisher/haukened "View all snaps from David Haukeness (haukened)")

* [David Haukeness (haukened)](https://snapcraft.io/publisher/haukened "View all snaps from David Haukeness (haukened)")
* [Utilities](https://snapcraft.io/search?categories=utilities)

[Install](https://snapcraft.io/install/mirrorselect/debian#install)

#### Mirrorselect is a tool to select the fastest Ubuntu mirrors

`mirrorselect` is a command-line tool designed to help users select the best mirror for downloading packages. It tests the speed of various mirrors and suggests the fastest one for your location.

Since the removal of netselect from the Ubuntu repositories, many users have been forced to use the mirror protocol. This protocol, while useful, only test latency/proximity using a one-sided view of the world. This leads to decent, but sub-optimal mirrors selections.

**MirrorSelect performs a series of actions to ensure you get the best mirrors:**

1. Mirrors are sourced from the Launchpad Mirror List instead of the Ubuntu Mirrors Service.
   1. The Ubuntu Mirrors service does not return the same mirrors every time it's accessed, due to the fact its guessing proximity to your location, and other factors. This means that the results may be incomplete or different each time it's run.
   2. Launchpad has the most up-to-date and complete information on operational official mirrors.
2. Every mirror (in the selected country) is tested for TCP latency, instead of ICMP.
   1. TCP Latency tests the amount of time it takes for the web server to complete the HTTP request.
   2. Other tools using ICMP latency only test the time the network takes, not how long it takes for the server to process the request.
3. Once the mirrors are ranked by TCP latency for responsiveness, the top `N` servers are then ranked by download speed.
   1. This ensures that you're actually getting the fastest server, not *just* the quickest one to respond.
   2. Even servers that respond quickly might have lower download speeds due to congestion, or other factors.

**Features**

* Automatically selects the fastest mirror
* GeoIP support for automatic country selection, or manual options for privacy.
* Supports protocol selection (HTTP, HTTPS, any)
* Easy to use command-line interface
* Sane defaults

**Usage**

MirrorSelect provides several command-line flags to customize its behavior:

`mirrorselect [optional flags]`

**Command-Line Flags**

* `-a`, `--arch`: Select the CPU architecture (default: current system)
* `-c`, `--country`: Filter mirrors by ISO 3166 Alpha-2 country code (Default: Auto-Detect). Options: ISO-3166 Alpha-2 Country Codes.. `US`, `DE`, etc..
* `-h`, `--help`: Display the help message and exit.
* `-m`, `-max`: The max number of servers to perform download speed tests (Default 5)
* `-p`, `--protocol`: Specify the protocol to use (default: ANY). Options: `http`, `https`, `any`.
* `-r`, `--release`: Specify the ubuntu release (Default: Current). Options: Ubuntu codenames e.g. `noble`, `jammy`, `focal`, etc...
* `-t`, `--timeout`: Set the timeout for each mirror latency test in milliseconds (default: 500ms).
* `-v`, `--verbosity`: Show verbose information (Default: WARN) Options: DEBUG, INFO, WARN, ERROR.

**Examples**

Select the fastest mirror using default settings:

`mirrorselect`

Select the fastest HTTPS mirror in the US:

`mirrorselect --protocol https --country US`

Bandwidth test 10 mirrors with a TCP Latency timeout of 800ms:

`mirrorselect --max 10 --timeout 800`

### Package name

* mirrorselect

---

### License

* GPL-3.0+

---

### Last updated

* 14 November 2024 - latest/stable
* 17 October 2026 - latest/edge

---

### Websites

* [github.com/haukened/mirrorselect](https://github.com/haukened/mirrorselect "https://github.com/haukened/mirrorselect")

---

### Donations

* [beer.hauken.us](https://beer.hauken.us "https://beer.hauken.us")

---

### Report a bug

* [github.com/haukened/mirrorselect/issues](https://github.com/haukened/mirrorselect/issues "https://github.com/haukened/mirrorselect/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/mirrorselect/debian#report-snap-modal)

---

## Enable snaps on Debian and install mirrorselect

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:

```
sudo apt update
sudo apt install snapd
```

After this, install the snapd snap in order to get the latest snapd:

```
sudo snap install snapd
```

### Install mirrorselect

To install mirrorselect, simply use the following command:

```
sudo snap install mirrorselect
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/mirrorselect/debian)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/mirrorselect/debian)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
