当前位置: 软件志 >苹果专区 > 适用于Linux的Windows Subsystem现已全面上架微软商店

适用于Linux的Windows Subsystem现已全面上架微软商店

更新时间:2022-11-23 10:32:51    浏览次数:928+次

一年多前,微软将Windows Subsystem for Linux(WSL)以预览状态带到了Windows 11的微软商店。对于那些不了解的人来说,WSL是微软在2017年添加到Windows 10的一个非常有用的能力。它使开发人员能够直接在Windows中运行GNU/Linux环境,而不需要虚拟机(VM)或双启动配置。今天,该公司已在微软商店全面上架WSL,用于Windows 10和Windows 11。

适用于Linux的Windows Subsystem现已全面上架微软商店图片

随着1.0.0版本WSL的发布,微软已经放弃了 “预览 “标签。此外,它已将WSL的这一版本作为运行wsl -安装或wsl -更新命令的人的默认体验。

微软已经吹捧了安装商店版WSL的几个优势。其中包括更快的更新,更好的错误打印,WSLg和WSL打包在一个软件包中,以及选择加入systemd支持的能力,以及其他许多事情。

将微软商店版的WSL反向移植到Windows 10,并使其成为两个操作系统上的默认体验,所引入的一些其他改进还包括:

  • wsl.exe –install?will now automatically install the Store version of WSL, and will no longer enable the “Windows Subsystem for Linux” optional component, or install the WSL kernel or WSLg MSI packages as they are no longer needed (The Virtual machine platform optional component will still be enabled, and by default Ubuntu will still be installed).
  • wsl.exe –install` also now includes:
    • –inbox?Installs WSL using the optional Windows component instead of using the Microsoft Store
    • –enable-wsl1?Enables WSL 1 support during the install of the Microsoft Store version by also enabling the “Windows Subsystem for Linux” optional component
    • –no-distribution?Do not install a distribution when installing WSL
    • –no-launch?Do not automatically launch the distro after install
    • –web-download?Download the most recent version of WSL from the internet instead of the Microsoft Store.
  • wsl.exe –update?will now check for and apply updates for the WSL MSIX package from the Microsoft Store, rather than updating the WSL kernel MSI
  • When running WSL using the Windows optional component version, once a week we will show a message on start up indicating that you can upgrade to the Store version by running?wsl –update.

不过在微软商店发布的版本中,有一个已知的问题。如果你在一个 “会话0 “会话中运行,WSL可能无法启动。

目前,WSL的这种新体验只对寻求者开放,但它将在12月中旬自动推广到所有人。寻找者的过程包括检查Windows更新,然后安装KB5020030(如果你在Windows 10上),或KB5019157(如果你在Windows 11上)。然后你可以运行wsl -安装(新用户)或wsl -更新(现有用户)命令来获得微软商店版本的WSL。或者,你可以手动安装GitHub上的最新版本

需要了解的是,如果你运行的是WSL 1发行版,你仍然需要手动安装 “Windows Subsystem for Linux “可选组件。更重要的是,WSL的内置Windows版本在未来只会收到关键的错误修复,新的功能将是微软商店版本独有的.

你可以在这里从微软商店下载Windows Subsystem for Linux:

Windows Subsystem for Linux – Microsoft Store 应用程序