nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[Bug]: Exec format error when enabled Distrod. #71

Open onurbbr opened 2 years ago

onurbbr commented 2 years ago

Describe the bug

I installed Distrod with my Ubuntu.tar.xz backup (stock distro file of Ubuntu). When I activate Distrod, I get Exec Format error. You can clearly see this in the video.

https://user-images.githubusercontent.com/47495526/186384952-141f5738-b41d-4beb-8ec3-e27b600542c5.mp4

Steps to reproduce

1- Enable Distrod on Default WSL2 Distro 2- Start WSL2 Distro 3- Run any exe file like explorer.exe, code.exe, notepad.exe, etc. 4- See error.

Expected behavior

exe files run smoothly.

Windows version

Windows 11 21H2 22622.575

Linux kernel version

5.15.57.1-microsoft-standard-WSL2

Distro

Ubuntu 22.04.1

How did you install that distro?

Enabled distrod in an existing WSL2 distro

Logs

-- No entries --

additional comment

I couldn't find any logs in Journal.

Note: LAMP, nodejs, bleeding-edge llvm packages, cuda and docker packages are installed. I'm pretty sure it's not due to llvm and cuda. I don't think Docker will give an error like this either.

EDIT: Nodejs is causing this. I have no clue why it's causing this.

ar37-rs commented 1 year ago

@onurbbr

sudo systemctl disable systemd-binfmt
sudo systemctl mask systemd-binfmt

and then restart.