microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.41k stars 822 forks source link

WSL cannot start Windows Store exe files #5076

Closed agowa closed 4 years ago

agowa commented 4 years ago

WSL is unable to start windows executables that have been created by windows store apps e.g. C:\Users\Klaus\AppData\Local\Microsoft\WindowsApps\EmEditor.exe

strace:

ubuntu@PC-001:~$ strace EmEditor.exe
execve("/mnt/c/Users/Klaus/AppData/Local/Microsoft/WindowsApps/EmEditor.exe", ["EmEditor.exe"], 0x7fffc9aa51d0 /* 18 vars */) = -1 ENOEXEC (Exec format error)
fstat(2, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 1), ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
getpid()                                = 67
exit_group(1)                           = ?
+++ exited with 1 +++

This may occur because these files are empty and are a special kind of symbolic link (at least I guess that's how it works)

DHowett-MSFT commented 4 years ago

This is a duplicate of #4969.

therealkenc commented 4 years ago

/dupe #4969

ghost commented 4 years ago

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!