Quantcast
Channel: sleeplessbeastie's notes
Viewing all articles
Browse latest Browse all 770

How to use nearest Debian mirror

$
0
0

Today, I will explain how to automatically choose nearest mirror based on geographic and network location using Debian mirrors HTTP redirector to solve the common problem of choosing an appropriate mirror.

Define redirector during installation process

Choose enter information manually option during the configuration of the package manager phase.

Define httpredir.debian.org as Debian archive mirror hostname.

Debian mirrors HTTP redirector will be used during installation process and afterwards.

Define redirector after the system is installed

Open /etc/apt/sources.list configuration file and replace used mirror servers with Debian mirrors HTTP redirectorhttpredir.debian.org.

#

#deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main

deb http://httpredir.debian.org/debian/ jessie main
deb-src http://httpredir.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://httpredir.debian.org/debian/ jessie-updates main
deb-src http://httpredir.debian.org/debian/ jessie-updates main

# jessie-backports, previously on backports.debian.org
deb http://httpredir.debian.org/debian/ jessie-backports main
deb-src http://httpredir.debian.org/debian/ jessie-backports main
Please note that I did not modified security updates.

Additional notes

Source code is located at GitHub rgeissert/http-redirector.

Additional information can be found at DebianGeoMirror discussion wiki page.


Viewing all articles
Browse latest Browse all 770

Trending Articles