Lỗi encountered an error during setup trên ubuntu năm 2024

I'm trying to install an Ubuntu distro to WSL. My CPU is Core i8, has virtualization support enabled, and followed the manual installation instructions at: //docs.microsoft.com/en-us/windows/wsl/install-manual

When I run the command

C:\Users\Duy Thanh>sc config LxssManager start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Users\Duy Thanh>

2, I get the following error:

C:\Users\Duy Thanh>sc config LxssManager start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Users\Duy Thanh>

4

Soon after, a search took place and I learned that the disabled

C:\Users\Duy Thanh>sc config LxssManager start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Users\Duy Thanh>

5service was causing this error [Link to article:

3815]

So I ran the following commands in order:

  • C:\Users\Duy Thanh>sc config LxssManager start=auto [SC] ChangeServiceConfig SUCCESS C:\Users\Duy Thanh>

    6 to enter Command Prompt
  • C:\Users\Duy Thanh>sc config LxssManager start=auto [SC] ChangeServiceConfig SUCCESS C:\Users\Duy Thanh>

    7 to start the

    C:\Users\Duy Thanh>sc config LxssManager start=auto [SC] ChangeServiceConfig SUCCESS C:\Users\Duy Thanh>

    8 service

And this is what I get:

[SC] StartService FAILED 1056:
An instance of the service is already running.

It says the service is already running. And when I check in

C:\Users\Duy Thanh>sc config LxssManager start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Users\Duy Thanh>

9, it is indeed running. So I suspect that although the service is running, the WSL on my machine is not able to communicate with the service.

So I stopped the service, put it back to the DISABLED state, went into Windows Features to disable WSL, rebooted the machine, and turned WSL back on, then restarted the computer.

At this point, I tried running WSL, and it gave me error 0x80070422. This is understandable, since I'm leaving the LxssManager service in the DISABLED state.

Then I re-enable the service with the command:

Windows PowerShell
Copyright [C] Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! //aka.ms/PSWindows
PS C:\Users\Duy Thanh>cmd.exe
Microsoft Windows [Version 10.0.22621.232]
[c] Microsoft Corporation. All rights reserved.
C:\Users\Duy Thanh>sc stop LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 3  STOP_PENDING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc start LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 2  START_PENDING
                                [NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 4152
        FLAGS              :
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>

0, and this is what I get:

C:\Users\Duy Thanh>sc config LxssManager start=auto
[SC] ChangeServiceConfig SUCCESS
C:\Users\Duy Thanh>

[Please note that I have disabled UAC on my computer, and run Windows Terminal as administrator. Windows Defender is also completely disabled using Group Policy and Registry, so there should be no conflict here]

I repeatedly run the following commands:

Windows PowerShell
Copyright [C] Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! //aka.ms/PSWindows
PS C:\Users\Duy Thanh>cmd.exe
Microsoft Windows [Version 10.0.22621.232]
[c] Microsoft Corporation. All rights reserved.
C:\Users\Duy Thanh>sc stop LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 3  STOP_PENDING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc start LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 2  START_PENDING
                                [NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 4152
        FLAGS              :
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>

1

And after reboot:

Windows PowerShell
Copyright [C] Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! //aka.ms/PSWindows
PS C:\Users\Duy Thanh>cmd.exe
Microsoft Windows [Version 10.0.22621.232]
[c] Microsoft Corporation. All rights reserved.
C:\Users\Duy Thanh>sc stop LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 3  STOP_PENDING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>sc start LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 2  START_PENDING
                                [NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 4152
        FLAGS              :
C:\Users\Duy Thanh>sc query LxssManager
SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING
                                [STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN]
        WIN32_EXIT_CODE    : 0  [0x0]
        SERVICE_EXIT_CODE  : 0  [0x0]
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\Users\Duy Thanh>

Now it's time for me to install my distro, and I verify the service is running, via the above commands:

Chủ Đề