I tried with Ubuntu 18.04 on WSL 1 and it did not work, it was not possible to build from source.

Has anybody tried compiling on WSL2?

2 Answers 2


I was able to make it work, you need to disable bubblewrap which is used by opam but not supported in WSL. You can do so using the --disable-sandboxing flag.

See https://github.com/ocaml/opam-repository/issues/12050#issuecomment-393478072


This comment by user jdsika includes all the steps needed to run Tezos on WSL2.


Note that Windows 10 version 2004 is needed. https://docs.microsoft.com/en-us/windows/whats-new/whats-new-windows-10-version-2004#windows-subsystem-for-linux-wsl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.