Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

How to fix: /mnt/c/Windows/System32/cmd.exe: Invalid argument #86

Open
ProTechEx opened this issue Sep 25, 2022 · 0 comments
Open

How to fix: /mnt/c/Windows/System32/cmd.exe: Invalid argument #86

ProTechEx opened this issue Sep 25, 2022 · 0 comments

Comments

@ProTechEx
Copy link

Hey,

I get this error: /mnt/c/Windows/System32/cmd.exe: Invalid argument

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@Z840:~# git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
Cloning into 'ubuntu-wsl2-systemd-script'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 118 (delta 31), reused 27 (delta 27), pack-reused 82
Receiving objects: 100% (118/118), 32.89 KiB | 350.00 KiB/s, done.
Resolving deltas: 100% (61/61), done.
root@Z840:~# cd ubuntu-wsl2-systemd-script/
root@Z840:~/ubuntu-wsl2-systemd-script# bash ubuntu-wsl2-systemd-script.sh
It appears that you are not running on WSL.
To forcibly install anyway, run this script with the `--force` parameter.
root@Z840:~/ubuntu-wsl2-systemd-script# bash ubuntu-wsl2-systemd-script.sh --force
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64  InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Selecting previously unselected package daemonize.
(Reading database ... 44080 files and directories currently installed.)
Preparing to unpack .../daemonize_1.7.8-1_amd64.deb ...
Unpacking daemonize (1.7.8-1) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../fontconfig_2.13.1-2ubuntu3_amd64.deb ...
Unpacking fontconfig (2.13.1-2ubuntu3) ...
Setting up fontconfig (2.13.1-2ubuntu3) ...
Regenerating fonts cache... done.
Setting up daemonize (1.7.8-1) ...
Processing triggers for man-db (2.9.1-1) ...
/mnt/c/Windows/System32/cmd.exe: Invalid argument
/mnt/c/Windows/System32/cmd.exe: Invalid argument
root@Z840:~/ubuntu-wsl2-systemd-script#

Any ideas how to fix that ?

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

No branches or pull requests

1 participant