To prevent timeouts on a Debian, Ubuntu, or Mint Linux, you can set the ForceIPv4 and ForceIPv6 variables to true, which will force the APT or APT-GET command to use either IPv4 or IPv6 network transport IP address. This can be done through the CLI. See https://www.cyberciti.biz/faq/howto-use-apt-get-with-ipv6-or-ipv4-transport-on-ubuntu-debian/
