< Day Day Up > |
Recipe 3.15. Selecting Package Mirrors for apt-proxy.conf3.15.1 ProblemThe default package mirrors in apt-proxy.conf are all over the globe, how do you select which mirrors to use? Ideally, you'd like to use mirror sites that are close to you. 3.15.2 SolutionThe default sources in /etc/apt-proxy/apt-proxy.conf look like this: add_backend /debian/ \ $APT_PROXY_CACHE/debian/ \ http://ftp.us.debian.org/debian/ \ http://ftp.de.debian.org/debian/ \ http://ftp.uk.debian.org/debian/ \ +ftp.us.debian.org::debian/ Visit http://www.debian.org/mirror/list for the current list of Debian mirrors. For example, here are some of the German mirrors on mirror/list: DE Germany ---------- ftp.de.debian.org /debian/ /debian/ ftp2.de.debian.org /debian/ /debian/ ftp.tu-clausthal.de /pub/linux/debian/ /pub/linux/debian/ debian.uni-essen.de /debian/ /debian/ ... Replace the defaults with your selections, prefixing each entry with http://: add_backend /debian/ \ $APT_PROXY_CACHE/debian/ \ http://ftp.de.debian.org/debian/ \ http://ftp2.de.debian.org/debian/ \ http://ftp.tu-clausthal.de/pub/linux/debian \ The /etc/apt/sources.list files on the client machines do not need to be changed. 3.15.3 DiscussionYou can use ping and traceroute to find out which mirrors have the fastest response times, because geographic proximity doesn't always mean faster responses. Having three separate sources gives redundancy. apt-proxy queries them in order, so if the first one does not respond, it tries the next one. 3.15.4 See Also
|
< Day Day Up > |