wsl --unregister<name of Linux distro> Substitute<name of Linux distro>in the command above with the actual Linux distro (ex: "Debian") from step 3 you want to uninstall. For example:wsl --unregisterDebian 5You can now close Windows Terminal if you like. ...
按下Ctrl + Shift + P,打开命令面板,输入Remote-WSL: New Window,选择在 WSL 中打开一个新窗口。 如果连接不上WSL(连接上WSL,可以忽略这部分),出现类似图: 由于连错wsl系统,连到docker-desktop系统时,报错连接不了 说明你vscode尝试连接的是docker-desktop这个WSL,参照我上面更改默认WSL版本为Ubuntu-22.04 如果d...
將內容解壓縮到名為\%USERPROFILE%\AppData\Local\DebianWSL\的新資料夾。 PowerShell mkdir"$env:USERPROFILE\AppData\Local\DebianWSL"|Out-Nulltar-xf.\DistroLauncher-Appx_1.12.2.0_x64.appx-C$"env:USERPROFILE\AppData\Local\DebianWSL" 使用PowerShell 將 Linux 發行版路徑新增到 Windows 環境的 PATH ...
重启电脑后再次打开CMD终端,尝试输入: wsl 如果你只安装了一个子系统,会尝试进入该子系统。 经过上述步骤,如果提示错误:Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND,可以再次输入: wsl--install-d Ubuntu-20.04 这将进入子系统的用户名和密码配置步骤,配置你的用户名和密码,不需要和你的windows系统的用户名...
导出WSL 映像 导出自定义的 WSL 映像,方法是运行 wsl --export<Distro> <FileName>,将映像打包到 tar 文件中,并准备好将其分发到其他计算机。 可按照自定义发行版指南创建自定义分发版,包括 CentOS、RedHat 等。 分发WSL 映像 从共享或存储设备分发 WSL 映像,方法是运行 wsl --import<Distro> <InstallLocation...
WSL 2 distro: Ubuntu 20.04 Docker version: 4.2.0. WSL 2 is used as base engine. Proxy is enforced in the network (i.e. SSL forward proxy occurs). These issues can apply to Docker in Ubuntu or other WSL Linux distros, Linux distros, or Docker in Hyper-V virtual machines, etc. Prere...
錯誤碼: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED 关键的是【錯誤碼】部分,可以看出 Hyper-V 没有正常启用。打不开 Dockers 大部分时候都是 Hyper-V 的问题。 大体上,你可以按照如下方式排查: (1)快捷键 Win+R,输入 optionalfeatures ...
<DistroName> # 导入 $ wsl --import <DistroName> <DistroUseDir> <DistroName.tar> # 标识 IP 地址 wsl hostname -i 标识通过 WSL 2 安装的 Linux 分发版 IP 地址(WSL 2 VM 地址) cat /etc/resolv.conf 表示从 WSL 2 看到的 WINDOWS 计算机的 IP 地址 (WSL 2 VM) # help $ wsl --help ...
Setting up Windows Terminal with WSL, PowerShell, and cmd can drastically streamline your workflow—here’s how to make the most of it. 1 By Pranav Bhardwaj Apr 17, 2025 How to back up and restore a Windows Subsystem for Linux (WSL) distro Windows Making a backup of your WSL dist...
Run your WSL Linux distro, e.g. Ubuntu. Execute the commandsudo deluser <username>. Substitute the<username>portion with the actual user name you want to create. Type your current password when prompted. The user account will be removed. ...