Disable IPV6 on Ubuntu 发表于 2019-12-31 更新于 2020-12-18 Disqus: Disable IPV6 on Ubuntu Disable IPv6 in APT 1echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 Disable IPv6 on all 123456sudo tee -a /etc/sysctl.d/99-sysctl.conf > /dev/null << EOLnet.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1EOLsudo sysctl -p Reference https://www.linuxbabe.com/ubuntu/disable-ipv6-on-ubuntu