Skip to content

Instantly share code, notes, and snippets.

@willwm
Created May 7, 2023 20:58
Show Gist options
  • Save willwm/d1a5d9ef97162279ce822353b65d3b69 to your computer and use it in GitHub Desktop.
Save willwm/d1a5d9ef97162279ce822353b65d3b69 to your computer and use it in GitHub Desktop.
Fix for "exec format error" when running `code` via WSL with Systemd enabled

Fix for "exec format error" when running code via WSL with Systemd enabled

microsoft/WSL#8843 (comment)

sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment