apt-get update / connexion à fr.archive.ubuntu.com très long

Ouvrir le Terminal

# sudo vim /etc/gai.conf

et décommenter la seule ligne : precedence ::ffff:0:0/96  100

Sans reboot, retenter un # sudo apt-get update … c’est instantané !

Cela paramètre en priorité l’IPV4 sans bloquer l’IPV6

 

Réf. http://askubuntu.com/questions/272796/connecting-to-archive-ubuntu-com-takes-too-long