Windows 10商店已有Ubuntu 20.04 LTS on Windows,附启用的方法

时间 2022-12-06 09:35:12 时间 2022-12-06 09:35:12 作者 admin 作者 admin 来源 <a href='https://www.xitongzhijia.com/' target='_blank' style='color:#AAA'>系统之家官网</a> 来源 系统之家官网

  现在就可以在微软的 Windows 10 版本中开启 Ubuntu 20.04 LTS 了,即 Ubuntu 20.04 LTS on Windows 已经上架在 Windows 10 应用商店中,可以随时体验。

  前言

  当前在 Windows 10 应用商店中已经可以下载 ubuntu 20.04 LTS on Windows。根据应用商店中的页面介绍,Windows 上的 ubuntu 20.04 允许使用 Ubuntu Terminal 并运行 Ubuntu 命令行实用程序,包括 bash、ssh、git、apt 等。

  它要求 Windows 10 版本 16215.0 或更高版本,支持 ARM64 和 x64 体系结构。要注意的是,该程序在 Windows 10 S 上不受支持,请用户注意辨别。

Windows 10商店已有Ubuntu 20.04 LTS on Windows,附启用的方法

  启用方法

  启用 Windows 10 WSL 后,在命令行提示符(cmd.exe)上输入 “ubuntu2004”,或在“开始”菜单中单击 Ubuntu 磁贴即可启用 Windows 上的 Ubuntu 20.04。也可以直接用 PowerShell 提示符执行:

  Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  如果已安装 Ubuntu,在 Ubuntu 终端中运行 do-release-upgrade 命令便可升级到新版本。

Windows 10商店已有Ubuntu 20.04 LTS on Windows,附启用的方法

  注意事项

  有一点必需注意,WSL 1 在运行 Ubuntu 20.04 LTS 时将会出现问题。建议 WSL 1 用户暂时不要升级到 Ubuntu 20.04,或是换到 WSL 2 来运行。

  在微软 Windows 10 中运行 Ubuntu 20.04 LTS 会很有保障,因为该版本为长期支持版本,有稳定性能的保障,下一个 Ubuntu LTS 版本将在 2022 年 4 月推出,即 Ubuntu 22.04 LTS,用户仍然能升级上去。