It is possible to install the Debian package with apt-get
in WSL, but I wouldn't advise doing so
-
systemd is not supported in WSL
-
a bunch of the bootstrap checks will fail when starting Elasticsearch e.g.
unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
Failing bootstrap checks will not allow the cluster to run in production and must be fixed.
I think the better options would be
- Use the zip distribution on Windows
- Use one of the package distributions like RPM or Debian on a support linux flavour
- Use the docker image on Docker for Windows