Force Apt-get to use IPv4 on Debian Linux

Posted on July 5, 2018 at 3:08 pm

In some VPS or servers you may get errors when doing apt-get due to IPv6.

To force apt-get to use IPv4 just type this command:

echo 'Acquire::ForceIPv4 "true";' | tee /etc/apt/apt.conf.d/99force-ipv4

The setting will be permanent.

Receive updates via email

Other Posts

Updated Posts