fixing infinite apt-get install timeout on raspberry pi
For some reason the IP6 address of the archive causes connection problems and infinite timeouts connecting. The solution is to force IP4, which you can make permanent.
Two methods. 1st method is best because it also fixes wget
Two methods. 1st method is best because it also fixes wget
sudo nano /etc/sysctl.conf
append the following lines to turn off ipv6:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
run
sudo sysctl -p
to take effect or just reboot.
2nd method, apt-get only
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
Comments