Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant' get it to work #29

Open
ekrogh opened this issue May 2, 2022 · 1 comment
Open

Cant' get it to work #29

ekrogh opened this issue May 2, 2022 · 1 comment

Comments

@ekrogh
Copy link

ekrogh commented May 2, 2022

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.

  1. 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).

  1. 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).

  1. 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

@lucyllewy
Copy link
Owner

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

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

No branches or pull requests

2 participants