I tried to disable IPv6 by adding in /etc/sysctl.conf
:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
and then running sudo sysctl -p
to reload the /etc/sysctl.conf
settings - but that threw the error:
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory
I tried to also disable it by changing grub configuration /etc/default/grub.d/50-cloudimg-settings.cfg
to:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 console=tty1 console=ttyS0"
and then run sudo update-grub
but there is no update-grub installed:
sudo: update-grub: command not found
So I am not sure if it is even possible to update grub, but the fact there is a specific configuration located there makes me thing there is.
WSL version:
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
update-grub
command is in the packagegrub2-common
, and generally I make changes to/etc/default/grub
. In a straight Ubuntu installation, I don't seem to have the directory that you specify for grub.cannot stat
error when runningsudo sysctl -p
, but it seemed to work anyway. At least,apt
is not throwing IPv6 errors anymore. Edit: Yes it is, sometimes. Still looking for a solid fix.