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

"Exec format error" after wsl --import #10314

Closed
1 of 2 tasks
RobMahn opened this issue Jul 20, 2023 · 2 comments
Closed
1 of 2 tasks

"Exec format error" after wsl --import #10314

RobMahn opened this issue Jul 20, 2023 · 2 comments

Comments

@RobMahn
Copy link

RobMahn commented Jul 20, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.1992]

WSL Version

WSL version: 1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Kernel version: 5.15.90.1

Distro Version

Debian

Other Software

No response

Repro Steps

  1. Import a WSL instance. e.g. wsl --import Debian.tar
  2. Attempt to run any Windows .exe from WSL. e.g. hostname.exe

The result is:
-bash: /mnt/c/Windows/system32/hostname.exe: cannot execute binary file: Exec format error

The import is apparently failing to create /usr/lib/binfmt.d/WSLInterop.conf.

The fix is found in #8952

Expected Behavior

Windows .exe files would continue to work after a WLS import.

Actual Behavior

Windows .exe files fail after an import.

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Jul 25, 2023

/dupe #8843

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants