这个,似乎我已经更新过了 如何在Windows11上安装WSL2的Ubuntu22.04(包括换源)win11安装wsl2 ubuntu22.04-CSDN博客
这个文章的作者说这个方法已经过时了,还是WSL用的好一点 如何优雅地在windows上玩ROS(一个紧致的解决方案) - 知乎

WSL2创建多实例--发行版管理工具wsl2distromanager使用 - 技术不支持 - 博客园
本文之后,再无ROS安装问题 | 10分钟在Windows搭建好ROS开发环境 - 知乎
使用 WSL 运行 Linux GUI 应用 | Microsoft Learn

(9 封私信) WSL 发行版卸载 - 知乎

在我输入下面的命令,并且回车的同时,Microsoft Store的Ubuntu 22.04.5 LTS条目的下载按钮自动变成了“正在下载”,看来这两个办法是等价的。

wsl --install -d Ubuntu-22.04

注意!坑爹啊!如果要删除发行版的命令不是--uninstall而是--unregister!我输错结果把我WSL核心和Hyper-V全给卸了!

wsl --unregister <DistributionName>

如何解决国内安装 wsl2 子系统,Ubuntu下载慢的问题_wsl下载ubuntu速度慢-CSDN博客
“wsl --install -d Ubuntu-22.04”下载慢,中国地区离线安装 Ubuntu 22.04 WSL方法(亲测2025年5月6日) - 技术栈
提取 Windows UWP 应用商店的安装包以供离线安装 | Dejavu's Blog

初次使用

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: enoch
New password:
Retype new password:
passwd: password updated successfully
The operation completed successfully.

Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Sep 16 22:27:29 CST 2025

  System load:  1.22                Processes:             87
  Usage of /:   0.1% of 1006.85GB   Users logged in:       0
  Memory usage: 10%                 IPv4 address for eth0: 172.24.15.91
  Swap usage:   0%

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status


The list of available updates is more than a week old.
To check for new updates run: sudo apt update


This message is shown once a day. To disable it please create the
/home/enoch/.hushlogin file.
enoch@DESKTOP-FLOWX13:~$ apt list --manual-installed
Listing... Done
base-files/focal-updates,now 11ubuntu5.7 amd64 [installed]
base-passwd/focal,now 3.5.47 amd64 [installed]
bash/focal-updates,focal-security,now 5.0-6ubuntu1.2 amd64 [installed]
cloud-init/focal-updates,focal-security,now 23.1.2-0ubuntu0~20.04.2 all [installed]
dash/focal,now 0.5.10.2-6 amd64 [installed]
dbus-x11/focal-updates,focal-security,now 1.12.16-2ubuntu2.3 amd64 [installed]
diffutils/focal,now 1:3.7-3 amd64 [installed]
eatmydata/focal,now 105-7 all [installed]
findutils/focal,now 4.7.0-1ubuntu1 amd64 [installed]
fontconfig-config/focal,now 2.13.1-2ubuntu3 all [installed]
fonts-dejavu-core/focal,now 2.37-1 all [installed]
grep/focal,now 3.4-1 amd64 [installed]
gzip/focal-updates,focal-security,now 1.10-0ubuntu4.1 amd64 [installed]
hostname/focal,now 3.23 amd64 [installed]
init/focal,now 1.57 amd64 [installed]
libasyncns0/focal,now 0.8-6 amd64 [installed]
libdebconfclient0/focal,now 0.251ubuntu1 amd64 [installed]
libdrm-amdgpu1/focal-updates,focal-security,now 2.4.107-8ubuntu1~20.04.2 amd64 [installed]
libdrm-intel1/focal-updates,focal-security,now 2.4.107-8ubuntu1~20.04.2 amd64 [installed]
libdrm-nouveau2/focal-updates,focal-security,now 2.4.107-8ubuntu1~20.04.2 amd64 [installed]
libdrm-radeon1/focal-updates,focal-security,now 2.4.107-8ubuntu1~20.04.2 amd64 [installed]
libeatmydata1/focal,now 105-7 amd64 [installed]
libflac8/focal-updates,focal-security,now 1.3.3-1ubuntu0.1 amd64 [installed]
libfontconfig1/focal,now 2.13.1-2ubuntu3 amd64 [installed]
libfontenc1/focal,now 1:1.1.4-0ubuntu1 amd64 [installed]
libfwupdplugin1/focal-updates,now 1.5.11-0ubuntu1~20.04.2 amd64 [installed]
libgl1-mesa-dri/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [installed]
libgl1/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed]
libglapi-mesa/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [installed]
libglvnd0/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed]
libglx-mesa0/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [installed]
libglx0/focal-updates,focal-security,now 1.3.2-1~ubuntu0.20.04.2 amd64 [installed]
libice6/focal,now 2:1.0.10-0ubuntu1 amd64 [installed]
libllvm12/focal-updates,focal-security,now 1:12.0.0-3ubuntu1~20.04.5 amd64 [installed]
libpciaccess0/focal,now 0.16-0ubuntu1 amd64 [installed]
libpulse0/focal-updates,now 1:13.99.1-1ubuntu3.13 amd64 [installed]
libpulsedsp/focal-updates,now 1:13.99.1-1ubuntu3.13 amd64 [installed]
libsensors-config/focal-updates,now 1:3.6.0-2ubuntu1.1 all [installed]
libsensors5/focal-updates,now 1:3.6.0-2ubuntu1.1 amd64 [installed]
libsm6/focal,now 2:1.2.3-1 amd64 [installed]
libsndfile1/focal-updates,focal-security,now 1.0.28-7ubuntu0.1 amd64 [installed]
libsodium23/focal,now 1.0.18-1 amd64 [installed]
libvorbisenc2/focal,now 1.3.6-2ubuntu1 amd64 [installed]
libvulkan1/focal,now 1.2.131.2-1 amd64 [installed]
libwayland-client0/focal-updates,focal-security,now 1.18.0-1ubuntu0.1 amd64 [installed]
libwrap0/focal,now 7.6.q-30 amd64 [installed]
libx11-xcb1/focal-updates,focal-security,now 2:1.6.9-2ubuntu1.2 amd64 [installed]
libxaw7/focal,now 2:1.0.13-1 amd64 [installed]
libxcb-dri2-0/focal,now 1.14-2 amd64 [installed]
libxcb-dri3-0/focal,now 1.14-2 amd64 [installed]
libxcb-glx0/focal,now 1.14-2 amd64 [installed]
libxcb-present0/focal,now 1.14-2 amd64 [installed]
libxcb-randr0/focal,now 1.14-2 amd64 [installed]
libxcb-shape0/focal,now 1.14-2 amd64 [installed]
libxcb-shm0/focal,now 1.14-2 amd64 [installed]
libxcb-sync1/focal,now 1.14-2 amd64 [installed]
libxcb-xfixes0/focal,now 1.14-2 amd64 [installed]
libxcomposite1/focal,now 1:0.4.5-1 amd64 [installed]
libxfixes3/focal,now 1:5.0.3-2 amd64 [installed]
libxft2/focal,now 2.3.3-0ubuntu1 amd64 [installed]
libxi6/focal,now 2:1.7.10-0ubuntu1 amd64 [installed]
libxinerama1/focal,now 2:1.1.4-2 amd64 [installed]
libxkbfile1/focal,now 1:1.1.0-1 amd64 [installed]
libxmlb1/focal-updates,now 0.1.15-2ubuntu1~20.04.1 amd64 [installed]
libxmu6/focal,now 2:1.1.3-0ubuntu1 amd64 [installed]
libxpm4/focal-updates,focal-security,now 1:3.5.12-1ubuntu0.20.04.1 amd64 [installed]
libxrandr2/focal,now 2:1.5.2-0ubuntu1 amd64 [installed]
libxrender1/focal,now 1:0.9.10-1 amd64 [installed]
libxshmfence1/focal,now 1.3-1 amd64 [installed]
libxt6/focal,now 1:1.1.5-1 amd64 [installed]
libxtst6/focal,now 2:1.2.3-1 amd64 [installed]
libxv1/focal,now 2:1.0.11-1 amd64 [installed]
libxxf86dga1/focal,now 2:1.1.5-0ubuntu1 amd64 [installed]
libxxf86vm1/focal,now 1:1.1.4-1build1 amd64 [installed]
mesa-vulkan-drivers/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [installed]
ncurses-base/focal-updates,focal-security,now 6.2-0ubuntu2.1 all [installed]
ncurses-bin/focal-updates,focal-security,now 6.2-0ubuntu2.1 amd64 [installed]
ncurses-term/focal-updates,focal-security,now 6.2-0ubuntu2.1 all [installed]
openssh-server/focal-updates,now 1:8.2p1-4ubuntu0.7 amd64 [installed]
openssh-sftp-server/focal-updates,now 1:8.2p1-4ubuntu0.7 amd64 [installed]
pulseaudio-utils/focal-updates,now 1:13.99.1-1ubuntu3.13 amd64 [installed]
python3-distutils/focal-updates,focal-security,now 3.8.10-0ubuntu1~20.04 all [installed]
python3-importlib-metadata/focal,now 1.5.0-1 all [installed]
python3-jinja2/focal,now 2.10.1-2 all [installed]
python3-json-pointer/focal,now 2.0-0ubuntu1 all [installed]
python3-jsonpatch/focal,now 1.23-3 all [installed]
python3-jsonschema/focal,now 3.2.0-0ubuntu2 all [installed]
python3-lib2to3/focal-updates,focal-security,now 3.8.10-0ubuntu1~20.04 all [installed]
python3-markupsafe/focal,now 1.1.0-1build2 amd64 [installed]
python3-more-itertools/focal,now 4.2.0-1build1 all [installed]
python3-nacl/focal,now 1.3.0-5 amd64 [installed]
python3-pymacaroons/focal,now 0.13.0-3 all [installed]
python3-pyrsistent/focal,now 0.15.5-1build1 amd64 [installed]
python3-serial/focal,now 3.4-5.1 all [installed]
python3-setuptools/focal-updates,focal-security,now 45.2.0-1ubuntu0.1 all [installed]
python3-zipp/focal,now 1.0.0-1 all [installed]
show-motd/focal-updates,now 3.6-0ubuntu6.1 all [installed]
ssh-import-id/focal,now 5.10-0ubuntu1 all [installed]
sysvinit-utils/focal,now 2.96-2.1ubuntu1 amd64 [installed]
ubuntu-minimal/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-server/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-standard/focal-updates,now 1.450.2 amd64 [installed]
ubuntu-wsl/focal-updates,now 1.450.2 amd64 [installed]
update-motd/focal-updates,now 3.6-0ubuntu6.1 all [installed]
wslu/focal-updates,now 2.3.6-0ubuntu2~20.04.0 all [installed]
x11-common/focal,now 1:7.7+19ubuntu14 all [installed]
x11-utils/focal,now 7.7+5 amd64 [installed]

ROS

【超详细】Win11 + WSL-ubuntu20.04安装ROS及可视化_wsl ros-CSDN博客
noetic/Installation/Ubuntu - ROS Wiki

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

sudo apt update
sudo apt install ros-noetic-desktop-full
source /opt/ros/noetic/setup.bash
rviz

这TM才是开箱即用啊!!!相见恨晚啊!!!