Debian: APT waits forever connecting to repo over IPv6

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1463
Joined: Fri Aug 29, 2003 8:39 pm

Debian: APT waits forever connecting to repo over IPv6

Post 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.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply