This repository was archived by the owner on Aug 11, 2023. It is now read-only.
Description 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 ?
Reactions are currently unavailable
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 downroot@Z840:~# git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.gitCloning 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 82Receiving 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.shIt 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 --forceHit:1 http://security.ubuntu.com/ubuntu focal-security InReleaseHit:2 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InReleaseHit:3 http://archive.ubuntu.com/ubuntu focal InReleaseHit:4 http://archive.ubuntu.com/ubuntu focal-updates InReleaseHit:5 http://archive.ubuntu.com/ubuntu focal-backports InReleaseReading package lists... DoneSelecting 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 argumentroot@Z840:~/ubuntu-wsl2-systemd-script#Any ideas how to fix that ?