snapcraft updates don't download in an IPv6 + NAT64 environment

Bug #1857006 reported by Peter Stevens
This bug affects 6 people
Affects Status Importance Assigned to Milestone

Bug Description

A common environment is IPv6 only with compatibility to IPv4 networks provided by NAT64, which includes the Mythic Beasts Raspberry Pi cloud and various IPv6 only VM offerings. In this environment IPv4 only services (e.g. have IPv6 addresses synthesized to allow connectivity. e.g.

$ telnet 443
Trying 2a00:1098:0:80:1000:3a:5bbd:5c26...
Connected to

The snap installer appears to ignore this connectivity option and insist on using IPv4 which won't work and doesn't fallback (or better yet, start with) native IPv6.

$ sudo snap install canonical-livepatch
error: cannot install "canonical-livepatch": persistent network error: Post dial tcp connect: network is unreachable

IPv6 + NAT64 is the required to be supported for iOS applications.

Revision history for this message
Peter Stevens (mythicbeasts) wrote :

If you drop the A responses for, you correctly then connect to the IPv6 address. So an IPv6 only customer of Mythic Beasts can workaround this with /etc/hosts


This is undesirable - we're now ignoring your DNS and have to maintain fake records locally.

The application should do

if (can_connect_v6) { connect_v6 } else { connect_v4 }

If you want to stick to preferring v4 because the 1990s were *awesome* and you want to stay there, then at least falling back to v6 if the v4 connection fails would be an improvement. That way your software would merely be slow, rather than broken.

Changed in snapd:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.