赞
踩
访问https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json下载对应版本的系统,此博客以Ubuntu-20.04为例
下载CSDN下载地址: https://download.csdn.net/download/qq_42454367/89346215
下载后打开Windows PowerShell,运行
Add-AppxPackage D:\system\Ubuntu2204LTS-230518_x64.appx
其中D:\system\Ubuntu2204LTS-230518_x64.appx为下载后的文件路径,
运行完成后在开始菜单点击系统
在打开的页面输入新账号、密码,即安装完成。
vim /etc/apt/sources.list
http://archive.ubuntu.com/ubuntu/
改为http://cn.archive.ubuntu.com/ubuntu/
后,输入:wq!保存退出apt-get update
apt-get install openssh-server
systemctl restart ssh
进行重启Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。