Ubuntu是一种流行的操作系统,它是开源的并且易于安装。它具有无限的自定义选项,因此非常灵活,并且本质上是高度安全的。好消息是,Windows 10具有一项称为Windows Subsystem for Linux的新酷功能,也称为WSL,我们可以使用该功能在Windows 10上安装Ubuntu。

在Windows 10上安装Ubuntu 20.04

步骤1.首先,为Windows功能启用Windows子系统。

以管理员身份运行以下命令到PowerShell。右键单击开始按钮,然后选择Windows PowerShell(Admin):

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

启用WSL后,系统将提示您重新引导PC。

步骤2.在Windows 10上安装Ubuntu 20.04。

现在,我们进入“开始”菜单,打开Microsoft Store,然后搜索Ubuntu 20:

ubuntu-20-app-windowsubuntu-20-app-windows

接下来,选择并安装Ubuntu 20.04 LTS应用程序:

install-ubuntu-windows-2install-ubuntu-windows-2

成功安装后,从“开始”菜单启动Ubuntu应用程序。

start-ubuntuinstall-ubuntu-windows-2

现在,我们创建一个新的Linux用户名和密码,这些名称不必与Windows 10凭据相同。完成此步骤后,您将在Ubuntu bash命令行中找到自己:

ubuntu-subsysteminstall-ubuntu-windows-2

我们可以访问Ubuntu bash命令行,在其中可以运行bash命令,我们将在实际的Ubuntu系统上使用它。您还可以访问Ubuntu子系统中的Windows C驱动器。运行df -h命令,您将看到挂载点,即。/mnt/c

install-ubuntu-20-windows-install-ubuntu-windows-2

恭喜你!您已成功安装Ubuntu并在Windows 10上激活了Ubuntu终端。感谢您使用本教程在Windows 10系统上安装Ubuntu 20.04。有关其他帮助或有用信息,我们建议您查看Ubuntu官方网站。