http://muzso.hu/2011/09/19/how-to-disable-ipv6-in-debian-lenny-and-squeeze
sysctl
to set net.ipv6.conf.all.disable_ipv6
to 1
in case of Squeeze.apt-get update
commands and using sysctl
to let the kernel know not to use IPv6 stopped these from occurring.ipv6
module from being loaded, but APT errors still kept coming), but I'll document it just for reference: create a new file at /etc/modprobe.d/local.conf
and put the following in it:install ipv6 /bin/true
alias net-pf-10 off
alias ipv6 off
disable_ipv6
to 1
. This is meant to do the same as the sysctl
method and might work if your kernel recognizes this commandline parameter. If you're using the GRUB bootloader, you can specify the parameter in /etc/default/grub
in the GRUB_CMDLINE_LINUX
variable.sysctl
method works just fine in Squeeze.