one-script-wsl2-systemd
one-script-wsl2-systemd copied to clipboard
Cant' get it to work
On this system:
`PS D:\Users\eigil> wsl --status Default Distribution: Ubuntu Default Version: 2 WSL version: 0.58.3.0 Kernel version: 5.10.102.1 WSLg version: 1.0.33 MSRDC version: 1.2.2924 Direct3D version: 1.601.0 Windows version: 10.0.22610.1 PS D:\Users\eigil> wsl --list --all -v NAME STATE VERSION
- Ubuntu Stopped 2 UbuntuTstGenie Stopped 2 Ubuntu-22.04 Stopped 2 UbuntuDvlGenie Running 2 UbuntuDvl Stopped 2 UbuntuGenie Stopped 2 UbuntuTst Stopped 2 PS D:\Users\eigil> `
I can't get it to work.
- I tried
pwsh.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -File "D:\Users\eigil\projects\myCommands\WSL_Div\one-script-wsl2-systemd\install.ps1"
That didn't do anything (as far as I could see).
- Tried
pwsh.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -File "D:\Users\eigil\projects\myCommands\WSL_Div\one-script-wsl2-systemd\install.ps1" -distro UbuntuDvlGenie
That didn't do anything either (as far as I could see).
- Then I tried the
Minimal manual installation
Now I get this errer
: command not found -bash: /etc/profile.d/00-wsl2-systemd.sh: line 21: syntax error near unexpected token
$'in\r'' 'bash: /etc/profile.d/00-wsl2-systemd.sh: line 21:
case "$0" in
when the distro is started.
-- Eigil
Please redownload the latest install.ps1
script and execute the command with -Debug
appending to the commandline.
If it still doesn't work try without the pwsh.exe
wrapper as in:
./install.ps1 -distro UbuntuDvlGenie -Debug