The ISP I work at is setting up an internal IPv6 network in preparation for eventually connecting to the IPv6 internet. As a result, several of the servers in this network now try to connect to security.debian.org via its IPv6 address by default when running apt-get update, and that results in having to wait for a lengthy timeout whenever I'm downloading updates of any sort.
Is there a way to tell apt to either prefer IPv4 or ignore IPv6 altogether?
/etc/gai.confso thatsecurity.debian.org's A record are returned before the AAA record, but I don't know precisely what to put in that file. – Gilles Mar 24 '11 at 0:10