Windows 10: wsl version update does not succeed?

Discus and support wsl version update does not succeed? in Windows 10 Software and Apps to solve the problem; C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for... Discussion in 'Windows 10 Software and Apps' started by JQiKS, Mar 30, 2023.

  1. JQiKS Win User

    wsl version update does not succeed?


    C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version: 1.1.6.0 Kernel version: 5.15.90.1 WSLg version: 1.0.50 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19045.2728 C:\Users\jqi>wsl -l -v NAME STATE VERSION * Ubuntu-18.04 Stopped 2

    :)
     
    JQiKS, Mar 30, 2023
    #1

  2. WSL

    Version 2 of WSL uses a new lightweight utility virtual machine capability. To enable the lightweight virtual machine and WSL, you need to enable two Windows features: Virtual Machine Platform and Windows Subsystem for Linux.

    To enable these features via the user interface (UI), press the Windows key and enter Windows Features, then click on Turn Windows features on or off.
    When the Windows Features dialog appears, check the boxes for Virtual Machine Platform and Windows Subsystem for Linux.




    If you want to make version 2 the default for any Linux distros you install then run the following command:


    Code:
    Now you can install Linux distro from Microsoft Store it will be running version 2 of WSL.

    A distro can be converted between versions of WSL after installation. To achieve this, you use the wsl --set-version command.

    This command takes two arguments:

    • The name of the distro to update
    • The version to convert it to

    An example of converting the Ubuntu distro to version 2 is shown here:

    Code:
    Execute wsl --list --verbose versions of WSL installed distro.
     
    FreeBooter, Mar 30, 2023
    #2
  3. Brink Win User
    Systemd support is now available in WSL

    Many popular distributions run systemd by default, such as Ubuntu, Debian and more. This change means that WSL will be even more similar to using your favorite Linux distros on a bare metal machine, and will let you use software that depends on systemd support.

    A few examples of Linux applications that depend on systemd are:

    • snap
      • A handy binary that allows you to install and manage software inside Ubuntu.
      • Try running: snap install spotify or snap install postman
    • microk8s
    • systemctl
      • A tool that’s part of systemd, interact with services on your Linux machine
      • Try systemctl list-units --type=service to see which services are available and their status
    How is this change possible in WSL?

    Supporting systemd required changes to the WSL architecture. As systemd requires PID 1, the WSL init process started within the Linux distribution becomes a child process of the systemd. Because the WSL init process is responsible for providing the infrastructure for communication between the Linux and Windows components, changing this hierarchy required rethinking some of the assumptions made with the WSL init process. Additional modifications had to be made to ensure a clean shutdown (as that shutdown is controlled by systemd now) and to have compatibility with WSLg, It is also important to note that with these change, systemd services will NOT keep your WSL instance alive. Your WSL instance will stay alive in the same way it did before, which you can read more about here.

    Given that this changes how WSL behaves when booting up, we wanted to be careful about applying this to user’s already existing WSL distros. So currently you need to opt-in to enable systemd for a specific WSL distro, and we will monitor feedback and investigate making this behavior by default in the future.

    How can you get systemd on your machine?

    To get started, you will need to do these two things: – Ensure you are running the right version of WSL: Version 0.67.6 and above – Set the systemd flag set in your WSL distro settings

    Ensuring you are on the right WSL version

    This change is only available in the Microsoft Store version of WSL version 0.67.6 and higher. You can check your version number by running wsl --version. If that command fails then you are running the in-Windows version of WSL and need to upgrade to the Store version.

    This version of WSL is now available in the Microsoft Store to users on Windows Insiders build for initial testing, and then after a few weeks we will make it available to all users to ensure quality. You can run wsl --update to check for any WSL updates.

    If you are not on Windows Insiders and want to use it immediately, you can download the latest release from the WSL release page.

    Set the systemd flag set in your WSL distro settings

    You will need to edit the wsl.conf file to ensure systemd starts up on boot.

    Add these lines to the /etc/wsl.conf (note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf):

    Code:
    And close out of the nano editor using CTRL+O to save and CTRL+X to exit.

    Final steps

    With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ status.

    Acknowledgements and Feedback!

    Thank you to the Canonical team for working with us to deliver this feature! Check out Canonical’s blog post here. For any technical issues please file them on the Microsoft/WSL Github repo. You can follow up with WSL team members, or with me on Twitter. Lastly, learn more about WSL, including how to set up common development tools like Git, VS Code, Docker containers, databases, GPU acceleration for machine learning, and more, by visiting the WSL documentation.
    Source: https://devblogs.microsoft.com/comma...ilable-in-wsl/

    Microsoft Store: https://www.elevenforum.com/t/instal...indows-11.377/
     
    Brink, Mar 30, 2023
    #3
  4. Brink Win User

    wsl version update does not succeed?

    Windows Subsystem for Linux (WSL) 0.70.0 released

    Source: Release 0.70.0 . microsoft/WSL . GitHub

    See also:
     
    Brink, Mar 30, 2023
    #4
Thema:

wsl version update does not succeed?

Loading...
  1. wsl version update does not succeed? - Similar Threads - wsl version update

  2. wsl version update does not succeed?

    in Windows 10 Gaming
    wsl version update does not succeed?: C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version:...
  3. wsl version update does not succeed?

    in Windows 10 Customization
    wsl version update does not succeed?: C:\Users\jqi>where wsl C:\Windows\System32\wsl.exe C:\Users\jqi\AppData\Local\Microsoft\WindowsApps\wsl.exe C:\Users\jqi>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed. C:\Users\jqi>wsl --version WSL version:...
  4. Why does WSL version indicate 1.x if updated to WSL 2?

    in Windows 10 Gaming
    Why does WSL version indicate 1.x if updated to WSL 2?: As titled https://answers.microsoft.com/en-us/windows/forum/all/why-does-wsl-version-indicate-1x-if-updated-to-wsl/ff9ebfd4-9682-45af-9532-6c3ab7aa360a
  5. Why does WSL version indicate 1.x if updated to WSL 2?

    in Windows 10 Software and Apps
    Why does WSL version indicate 1.x if updated to WSL 2?: As titled https://answers.microsoft.com/en-us/windows/forum/all/why-does-wsl-version-indicate-1x-if-updated-to-wsl/ff9ebfd4-9682-45af-9532-6c3ab7aa360a
  6. The packaged version of WSL is not supported by windows-version 10.0.19045.2130

    in Windows 10 Gaming
    The packaged version of WSL is not supported by windows-version 10.0.19045.2130: Hello,I have activated the windows feature WSL and restarted my PC as well.When I run the wsl command from the powershell, I receive the following message "The packaged version of WSL is not supported by windows-version 10.0.19045.2130". This is weird since I have the...
  7. Update KB5017380 doesn't succeed, error 0x8007007b

    in Windows 10 Gaming
    Update KB5017380 doesn't succeed, error 0x8007007b: Windows 10 pro. Optional Quality update doesn't succeed. Error 0x8007007b. Why activation error? What to do? https://answers.microsoft.com/en-us/windows/forum/all/update-kb5017380-doesnt-succeed-error-0x8007007b/1703b09a-3fae-4c0d-a179-7fe8a2c1742d
  8. Update KB5017380 doesn't succeed, error 0x8007007b

    in Windows 10 Software and Apps
    Update KB5017380 doesn't succeed, error 0x8007007b: Windows 10 pro. Optional Quality update doesn't succeed. Error 0x8007007b. Why activation error? What to do? https://answers.microsoft.com/en-us/windows/forum/all/update-kb5017380-doesnt-succeed-error-0x8007007b/1703b09a-3fae-4c0d-a179-7fe8a2c1742d
  9. Update KB5017380 doesn't succeed, error 0x8007007b

    in Windows 10 Installation and Upgrade
    Update KB5017380 doesn't succeed, error 0x8007007b: Windows 10 pro. Optional Quality update doesn't succeed. Error 0x8007007b. Why activation error? What to do? https://answers.microsoft.com/en-us/windows/forum/all/update-kb5017380-doesnt-succeed-error-0x8007007b/1703b09a-3fae-4c0d-a179-7fe8a2c1742d
  10. GPU Compute, WSL Install and WSL Update arrive in WSL

    in Windows 10 News
    GPU Compute, WSL Install and WSL Update arrive in WSL: There are three thrilling new updates for the Windows Subsystem for Linux (WSL) in the new Windows Insider Preview Build 20150. The first is GPU compute: a feature that allows your Linux binaries to leverage your GPU, which makes it possible to do more machine learning/AI...