Page 1 of 1

Debian: APT waits forever connecting to repo over IPv6

Posted: Tue Nov 05, 2019 2:14 pm
by ^rooker
[PROBLEM]

On Debian 9 (Stretch), any apt action hangs at the following IPv6 host:
0% [Connecting to prod.debian.map.fastly.net (2a04:4e42:1b::204)]
[SOLUTION]
It's not really a solution, but a workaround since the IPv6 path in this network doesn't seem to be configured.

I've disabled IPv6 on that machine, since I don't need it yet:

Code: Select all

$ sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sysctl -w net.ipv6.conf.default.disable_ipv6=1
To make it permanent, add the following at the bottom of "/etc/sysctl.conf"

Code: Select all

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Thanks to Jack Wallen's "How to disable IPv6 on Linux" article.