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/文件夹
版权声明:本文标题:Windows 安装ubuntu 子系统 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1734732041a1796131.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论