Choix du miroir - Netselect-apt

Choix du miroir - Netselect-apt

Les miroirs sont des serveurs, répartis dans le monde, qui répliquent l'information des serveurs Debian originaux et permettent de répartir la charge et de raccourcir le temps d’accès à l'information. Il existe, une vingtaine de miroirs en France. Une liste mondiale de miroirs est disponible sur la page : https://www.debian.org/mirror/list.

1 - Principe

netselect-apt est un programme qui teste automatiquement les différents miroirs et génère finalement :

A noter

2 - Installation

# aptitude install netselect-apt

3 - Utilisation

3.1 - Détermination du miroir

Lancer le test des miroirs avec les options souhaitées :

Si aucune option n'est indiquée, netselect-apt recherchera parmi tous les miroirs, le miroir le plus rapide pour la version stable.

# netselect-apt -s -n -c fr stretch
.....
The fastest 10 servers seem to be:

http://debian.proxad.net/debian/
http://debian.mirrors.ovh.net/debian/
http://ftp.rezopole.net/debian/
http://ftp.lip6.fr/pub/linux/distributions/debian/
http://mirrors.ircam.fr/pub/debian/
http://ftp.u-strasbg.fr/debian/
http://debian.univ-lorraine.fr/debian/
http://ftp.ec-m.fr/debian/
http://mirror.plusserver.com/debian/debian/
http://ftp.u-picardie.fr/debian/

Of the hosts tested we choose the fastest valid for HTTP:
http://debian.proxad.net/debian/

Writing sources.list.
Done.

Le miroir recommandé est donc :

http://ftp.proxad.net/debian/

3.2 - Fichier sources.list modèle

Le fichier sources.list généré est utilisable comme canevas pour un fichier sources.list plus complet :

$ cat sources.list
# Debian packages for jessie
deb http://ftp.proxad.net/debian/ jessie main contrib non-free
# Uncomment the deb-src line if you want 'apt-get source'
# to work with most packages.
deb-src http://ftp.proxad.net/debian/ jessie main contrib non-free

# Security updates for stable
# deb http://security.debian.org/ stable/updates main contrib non-free