Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Last active November 6, 2023 15:43
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save hackjutsu/d189a0cc489d54e3920041e1231fb179 to your computer and use it in GitHub Desktop.
Save hackjutsu/d189a0cc489d54e3920041e1231fb179 to your computer and use it in GitHub Desktop.
[IPv4 over IPv6 on Ubuntu] Solved the issue when connecting to archive.ubuntu.com takes too long. Edit /etc/gai.conf and uncomment line 4, which lets you keep IPv6 enabled, but sets the order of precedence to prefer IPv4 over IPv6. (http://askubuntu.com/a/354886) #tags: ubuntu, bittiger
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment