# echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99forceipv4