How to fix inability to download anything on new Ubuntu servers

This problem occurs for me on a few providers after purchasing a new VPS. It’s a simple fix though.

  1. First open file /etc/gai.conf
  2. Find line #precedence ::ffff:0:0/96 100
  3. Uncomment line
  4. Fixed!