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 91 forks source link

[Distrod][ERROR] Initialization command exited with error. error: 126 cmd: WslCommand { distribution_name: "Distrod", command: Some("/opt/distrod/bin/distrod"), args: ["enable", "-d"] } #39

Open mirogl opened 2 years ago

mirogl commented 2 years ago

Describe the bug

When i try to install https://github.com/fedora-cloud/docker-brew-fedora/blob/33/aarch64/fedora-33.20211125-aarch64.tar.xz i get the following error after entering my user:

"[Distrod][ERROR] Initialization command exited with error. error: 126 cmd: WslCommand { distribution_name: "Distrod", command: Some("/opt/distrod/bin/distrod"), args: ["enable", "-d"] }"

this is becaue /opt/distrod/bin/distrod is not an arm64 binary.

file /opt/distrod/bin/distrod distrod: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /opt/distrod/ld/ld-linux-x86-64.so.2, BuildID[sha1]=b0f96f234969faf62ffe970de63edd16aadffa2c, for GNU/Linux 3.2.0, with debug_info, not stripped

How can i get this compiled by myself for arm64, since I have a arm64 pc ?

Thanks Miro

Steps to reproduce

see above

Expected behavior

recognizes arm64 and uses arm64 binaries instead of x86/x64 binaries

Windows version

22000.469

Linux kernel version

5.10.74.3-microsoft-standard-WSL2 #1 SMP Mon Oct 18 19:27:44 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Distro

Fedora-33

How did you install that distro?

Installed by Distrod wizard

Logs

sudo journalctl -b -k -t Distrod sudo: journalctl: command not found

additional comment

No response

mirogl commented 2 years ago

as an update - i tried to build the source code on my fedora wsl2 arm64 - it took some time, but run into an error:

wsl-distrod-0.1.5]$ make cd distrod; cargo build --release -p distrod -p distrod-exec -p portproxy Finished release [optimized] target(s) in 0.41s cd distrod; cargo.exe build --release -p portproxy /bin/sh: cargo.exe: command not found make: *** [windows.mk:23: portproxy.exe] Error 127

Many thanks for any hint, how i can get it to work on arm64.

Thanks Miro

mirogl commented 2 years ago

the following files have been compiled at: distrod/target/release

file distrod distrod: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=ad6d0139af518d87a1aa11c558c96ceed41716ba, for GNU/Linux 3.7.0, not stripped file distrod-exec distrod-exec: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=09f12a862e0e4c9408e6dc19f900ab343bdf0aba, for GNU/Linux 3.7.0, not stripped file portproxy portproxy: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2d41c92547fb1640a6c3c5e3f52dc897e8a17dc3, for GNU/Linux 3.7.0, not stripped

Thanks Miro