admin管理员组

文章数量:1319836

目录

一.安装包下载

1.1 下载地址

1.2 安装流程

二.安装问题

2.1 无法安装ubuntu-wsl

 2.2 安装问题-新建用户问题

三.ubuntu使用

3.1 windows/ubuntu网络共享​编辑

3.2 windows/ubuntu文件共享


一.安装包下载

1.1 下载地址

        ubuntu官网https://ubuntu/desktop/wsl

        microsoft 应用商店:Ubuntu - Official app in the Microsoft Store

1.2 安装流程

step 1: 打开ubuntu官网,找到 WSL,然后跳转到Microsoft Store       

step 2: 点击蓝色按钮,下载Ubuntu Installer.exe 文件

step3: 双击Ubuntu Installer.exe 进行安装

                

二.安装问题

2.1 无法安装ubuntu-wsl

Installing, this may take a few minutes... 
Ws1RegisterDistribution failed with error: 0x8007019e 
Error: 0x8007019e ??????? Linux ? Windows ????
Press any key to continue...

解决办法:启用Microsoft Windows子系统Linux(WSL)

Step1:以管理员身份打开PowerShell

你可以通过在开始菜单中搜索PowerShell,右击它,然后选择“以管理员身份运行”来实现。

Step2:  执行命令:

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

Step3:  重启你的电脑

备注:

一旦启用了WSL,你就可以从Microsoft Store安装你喜欢的Linux发行版。WSL允许你直接在Windows上运行Linux环境,无需传统虚拟机或双启动设置的开销。

 2.2 安装问题-新建用户问题

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username. 
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: XX
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[ SYSTEM] configuration variable. Use the ~——force-badname
option to relax this check or reconfigure NAME_ REGEX.
Enter new UNIX username: ZhuanZ

解决方法: 把用户名改成小写字母即可

三.ubuntu使用

         操作:在windows左下角的搜索框中输入ubuntu ,鼠标左击找到的ubuntu图标即可

3.1 windows/ubuntu网络共享

        备注:默认不需要任何配置

3.2 windows/ubuntu文件共享

备注:window 的c盘挂载到ubuntu的/mnt 目录下,可以看到一个/mnt/c/文件夹

本文标签: 子系统WindowsUbuntu