To enable the Windows Subsystem for Linux, follow these steps:

  1. Open PowerShell as administrator. You can do this by right-clicking on the Start button and selecting "Windows PowerShell (Admin)".

  2. Run the following command to enable the Windows Subsystem for Linux feature:

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    
  3. Restart your computer to complete the installation of the feature.

  4. After the restart, open Microsoft Store and search for the Linux distribution you want to install, such as Ubuntu or Debian. Choose the one you prefer and install it.

  5. Launch the installed Linux distribution from the Start menu. The first time you launch it, it may take a few minutes to complete the setup.

  6. Follow the prompts to create a new user account and set a password for it.

Once these steps are completed, the Windows Subsystem for Linux will be enabled on your system, and you can start using Linux commands and applications within the subsystem

ERR The Windows Subsystem for Linux has not been enabled

原文地址: https://www.cveoy.top/t/topic/iAJz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录