wsl2安装教程

摘要:记录在Windows11系统上安装wsl2。

在Powershell中输入:

1
2
3
4
5
6
7
8
$env:https_proxy=”http://127.0.0.1:7890”
$env:http_proxy=”http://127.0.0.1:7890” # 梯子
wsl --install --no-distribution # 安装无分发版的

wsl --list –verbose # 查看已经安装的分发
wsl --list –online # 列出可用分发
wsl --install -d Ubuntu-24.04