Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active August 22, 2017 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leodutra/e4174dce5746cdc337439e9e2dea093f to your computer and use it in GitHub Desktop.
Save leodutra/e4174dce5746cdc337439e9e2dea093f to your computer and use it in GitHub Desktop.
Force ipv4 apt get (Ubuntu)

Force IPv4 Only apt-get (Ubuntu)

Once

sudo apt update -o Acquire::ForceIPv4=true

Permanent

echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment