启用适用于Linux的Windows子系统
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
启用虚拟机功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
下载Linux内核更新包
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
将WSL2设置为默认版本
wsl --set-default-version 2
安装所选的Linux分发
https://aka.ms/wslstore
为新的Linux分发版创建用户帐户和密码
更换国内源和更新子系统
sudo -i cp /etc/apt/sources.list /etc/apt/sources.list.bak sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list apt update && apt upgrade -y
安装Windows终端
https://aka.ms/terminal
验证安装
wsl -l -v
更新日期: 2020年12月28日
文章标签: Windows
文章链接: https://www.vos.cn/os/473.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。
文章标签: Windows
文章链接: https://www.vos.cn/os/473.html
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。