Windows 10: wsl: howto is not applicable

Discus and support wsl: howto is not applicable in Windows 10 Customization to solve the problem; Tried to start wsl accordingly to https://learn.microsoft.com/en-us/windows/wsl/basic-commandsFailed from the very beginning:PS P:\> wsl... Discussion in 'Windows 10 Customization' started by icegood, Apr 10, 2023.

  1. icegood Win User

    wsl: howto is not applicable


    Tried to start wsl accordingly to https://learn.microsoft.com/en-us/windows/wsl/basic-commandsFailed from the very beginningwsl: howto is not applicable :pS P:\> wsl --installInvalid command line option: --set-default-versionUsage: wsl.exe [option] ...Options: -d, --distribution <DistributionName> Launch the specified distribition. -e, --exec <CommandLine> Execute the specified Linux command. The remainder of the arguments are used as the command line to execute. -u, --user <UserName> Run as the specified user. --help Display this usage information. --

    :)
     
    icegood, Apr 10, 2023
    #1
  2. Brink Win User

    Windows Subsystem for Linux (WSL) 0.70.0 released

    Source: Release 0.70.0 . microsoft/WSL . GitHub

    See also:
     
    Brink, Apr 10, 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, Apr 10, 2023
    #3
  4. wsl: howto is not applicable

    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, Apr 10, 2023
    #4
Thema:

wsl: howto is not applicable

Loading...
  1. wsl: howto is not applicable - Similar Threads - wsl howto applicable

  2. wsl: howto is not applicable

    in Windows 10 Gaming
    wsl: howto is not applicable: Tried to start wsl accordingly to https://learn.microsoft.com/en-us/windows/wsl/basic-commandsFailed from the very beginning:PS P:\> wsl --installInvalid command line option: --set-default-versionUsage: wsl.exe [option] ...Options: -d, --distribution <DistributionName> Launch...
  3. wsl: howto is not applicable

    in Windows 10 Software and Apps
    wsl: howto is not applicable: Tried to start wsl accordingly to https://learn.microsoft.com/en-us/windows/wsl/basic-commandsFailed from the very beginning:PS P:\> wsl --installInvalid command line option: --set-default-versionUsage: wsl.exe [option] ...Options: -d, --distribution <DistributionName> Launch...
  4. Howto solve this issue?

    in Windows 10 Gaming
    Howto solve this issue?: Dear Microsoft,I recently encountered an issue with my laptop, where it suddenly stopped working and I experienced some hanging and Blue Screen of Death BSOD issues when I tried to restart it. Could you please provide a solution to this problem?...
  5. Howto solve this issue?

    in Windows 10 Software and Apps
    Howto solve this issue?: Dear Microsoft,I recently encountered an issue with my laptop, where it suddenly stopped working and I experienced some hanging and Blue Screen of Death BSOD issues when I tried to restart it. Could you please provide a solution to this problem?...
  6. Can't run lunix application GUI via WSL 2

    in Windows 10 Gaming
    Can't run lunix application GUI via WSL 2: Dears.I hope you doing well and Thanks for you effort.I install Ubuntu via WSL 2 and it's work fine with line command but when want to run an application i get the below message, i try all the solution that find in the internet but it's not work with me, i don't know if the...
  7. Can't run lunix application GUI via WSL 2

    in Windows 10 Software and Apps
    Can't run lunix application GUI via WSL 2: Dears.I hope you doing well and Thanks for you effort.I install Ubuntu via WSL 2 and it's work fine with line command but when want to run an application i get the below message, i try all the solution that find in the internet but it's not work with me, i don't know if the...
  8. Can't run lunix application GUI via WSL 2

    in Windows 10 BSOD Crashes and Debugging
    Can't run lunix application GUI via WSL 2: Dears.I hope you doing well and Thanks for you effort.I install Ubuntu via WSL 2 and it's work fine with line command but when want to run an application i get the below message, i try all the solution that find in the internet but it's not work with me, i don't know if the...
  9. Need an howto

    in Windows 10 News
    Need an howto: Want to rename an *.exe to exchange it with another, but Windows says No. The question is, how i can get full access for all my files without using a Linux or another Unix?
  10. Howto mount an ISO file automatically?

    in Windows 10 Support
    Howto mount an ISO file automatically?: Magic ISO was removed when I updated to Windows 10 (though I had to clean up afterwards). One thing I found very useful with MagicISO was the ability to have several ISO files that were always mounted, but it appears that I can't RMB on an ISO file and tell Windows 10 to...