Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start .exe files after Debian12 update #10404

Closed
1 of 2 tasks
Fede2782 opened this issue Aug 19, 2023 · 4 comments
Closed
1 of 2 tasks

Unable to start .exe files after Debian12 update #10404

Fede2782 opened this issue Aug 19, 2023 · 4 comments

Comments

@Fede2782
Copy link

Fede2782 commented Aug 19, 2023

Windows Version

Microsoft Windows [Versione 10.0.22621.2213]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Debian 12

Other Software

No response

Repro Steps

Open a fresh Debian installation and then run "explorer.exe ." or any other .exe file

Expected Behavior

Before Debian 12 if I executed .exe they would start normally

Actual Behavior

-bash: /mnt/c/Windows/explorer.exe: cannot execute binary file: Exec format error

Diagnostic Logs

No response

@HUAHUAI23
Copy link

I'm having the same problem.

@U3erKa
Copy link

U3erKa commented Aug 20, 2023

I had the same problem on ubuntu. The solution/workaround recently got mentioned in #8843 and #8952

Run this in bash:

sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'

After that restart your WSL distro:

wsl --shutdown

@Fede2782
Copy link
Author

It works. However it should be included out of the box as it happened before Debian12

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 22, 2023

/dupe #8843

@OneBlue OneBlue closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants