You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After updating latest packages yesterday, I am getting Exec format error when running Windows executables within WSL2 Fedora. This worked up until yesterday(ish).
To Reproduce
Steps to reproduce the behavior:
Edit /etc/wsl.conf, set systemd=true in [boot]
Close all WSL windows, run wsl --shutdown in PowerShell / CMD window
Open new Fedora Remix window, run explorer.exe
See error
Expected behavior
Explorer window should open
Additional context
After disabling systemd, running Windows executables work just fine.
I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
I have disabled and re-enabled WSL in Windows Features.
I have run Windows 10 updates and restarted.
What other troubleshooting have you attempted?
Insert here:
Disabling systemd. Also found information here regarding a binfmt.d entry that might work, but the link to the workaround is currently broken: microsoft/WSL#8843
Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19045 N/A Build 19045
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
I have seen this error before when the interop between WSL and Windows is broken. You can solve it with a wsl --shutdown, but sometimes you need a restart. The store version of WSL is not quite stable, and these errors happen.
Also, sometimes it freezes, and the wsl command stops responding, in that case, you need to go to Task Manager and kill the Windows Subsystem for Linux processes and wsl --shutdown until it restarts.
Describe the bug
After updating latest packages yesterday, I am getting
Exec format error
when running Windows executables within WSL2 Fedora. This worked up until yesterday(ish).To Reproduce
Steps to reproduce the behavior:
/etc/wsl.conf
, setsystemd=true
in[boot]
wsl --shutdown
in PowerShell / CMD windowexplorer.exe
Expected behavior
Explorer window should open
Additional context
After disabling systemd, running Windows executables work just fine.
Basic Troubleshooting Checklist
What other troubleshooting have you attempted?
Insert here:
Disabling systemd. Also found information here regarding a binfmt.d entry that might work, but the link to the workaround is currently broken: microsoft/WSL#8843
WLinux Version
Find: Settings->Apps->Apps & features->WLinux->Advanced Options->Version.
Insert here: 1.0.3.0
Windows Build
Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number
The text was updated successfully, but these errors were encountered: