Last active
October 17, 2023 08:40
-
-
Save souhaiebtar/5e83bd499b2b022214a8effa4f661d9b to your computer and use it in GitHub Desktop.
[wsl2 cannot run .exe] wsl2 cannot run .exe #wsl2 #wsl #linux #windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf' | |
sudo systemctl unmask systemd-binfmt.service | |
sudo systemctl restart systemd-binfmt | |
sudo systemctl mask systemd-binfmt.service | |
# source: https://github.com/microsoft/WSL/issues/8952 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment