[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#684407: apt: connection to Debian mirror with both A and AAAA records fails if client has no routable IPv6 address



On Sun, Mar 01, 2015 at 09:49:52PM +0100, Vincent Lefevre wrote:
> Control: found -1 1.0.9.7
> 
> On 2012-08-09 19:55:01 +0300, Martin-Éric Racine wrote:
> > Failed to fetch http://http.debian.net/debian/pool/main/libf/libfile-libmagic-perl/libfile-libmagic-perl_0.96-3_i386.deb  Cannot initiate the connection to ftp.fi.debian.org:80 (2001:708:310:54::99). - connect (101: Network is unreachable) [IP: 2001:708:310:54::99 80]
> 
> Still not fixed yet!!!
> 
> This suddenly occurred with ftp.fr.debian.org from two different
> machines that are on two different networks, preventing the latest
> security updates.

I can't reproduce this, but you just marked it as found in 1.5~beta1. All
my networks are IPv4-only (either just gw -> internet or entirely) and I
never had any issue with that, nor does the majority - otherwise we'd
be swimming in bug mails, so it must be some niche setup.

I suggest you take a look at methods/connect.cc and see if you can
come up with a fix. The code specifically iterates over all results
it gets from getaddrinfo(). Alternatively, try to figure out when this
bug happens.

Finally, you can always work around it by setting Acquire::ForceIPv4
to true.
-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


Reply to: