Fix for ebtables errors during update WSL ubuntu 18.04

  • Credit to russalex: https://github.com/Microsoft/WSL/issues/143#issuecomment-209072634
  • Credit to nuclearmistake: https://github.com/Microsoft/WSL/issues/143#issuecomment-209075558
sudo vim /usr/sbin/policy-rc.d
Put this in the file:

#!/bin/sh
exit 101

save it then:

sudo chmod +x /usr/sbin/policy-rc.d
sudo dpkg-divert --local --rename --add /sbin/initctl
sudo ln -fs /bin/true /sbin/initctl

Configuration Golang and MSYS2 MingW64

 

  1. Add to Windows Path so that go knows where gcc is
    1. C:\msys64\mingw64\bin
  2. Add a new Environment Varible to Windows
    1. QT_MSYS2=true
  3. Add to MingW64 Terminal
    1. .bashrc file
      1. Add two lines at the bottom like so:
      2. export GOPATH=”/c/gowork”
      3. export PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
    2. .profile
      1. GOPATH=”/c/gowork”
      2. PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
  4. After restarting MSYS2 MingW32 terminal you should now be able to see Go with:
    1. go version