Previous Section  < Day Day Up >  Next Section

Recipe 3.15. Selecting Package Mirrors for apt-proxy.conf

3.15.1 Problem

The 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 Solution

The default sources in /etc/apt-proxy/apt-proxy.conf look like this:

add_backend /debian/                                    \

        $APT_PROXY_CACHE/debian/                        \                \                \                \

Visit for the current list of Debian mirrors. For example, here are some of the German mirrors on mirror/list:

DE Germany

----------     /debian/            /debian/    /debian/            /debian/   /pub/linux/debian/  /pub/linux/debian/   /debian/            /debian/


Replace the defaults with your selections, prefixing each entry with http://:

add_backend /debian/                                    \

        $APT_PROXY_CACHE/debian/                        \                \               \     \

The /etc/apt/sources.list files on the client machines do not need to be changed.

3.15.3 Discussion

You 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

    Previous Section  < Day Day Up >  Next Section