Force Apt-Get to IPv4 or IPv6 on Ubuntu or Debian

You can force IPv4 with:

apt-get -o Acquire::ForceIPv4=true update

or IPv6:

apt-get -o Acquire::ForceIPv6=true update

To make this persistent,check this post out:

https://www.vultr.com/docs/force-apt-get-to-ipv4-or-ipv6-on-ubuntu-or-debian

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.