WSL 逐步配置安装教程

1. 控制面板 - 程序 - 打开 Windows subsystem Linux,重启电脑

2. 在Windows商店安装任一一款Linux镜像,注意如果人在墙内,安装时会报错网络错误,请采用其他任一一种非常规手段下载镜像

3. 安装镜像后,您可以在桌面、开始菜单打开Linux系统。左键选中窗口,点击属性——选项,开启快捷键共享剪切板

4. 设置密码后,为了能正常安装更新系统、使用相关功能,您需要切换到国内源

此处提供Ubuntu命令

#新建源列表文件
vim /etc/apt/sources.list

#加入源地址(推荐用阿里云源)
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

sudo apt-get update
sudo apt-get upgrade

 5. Linux 

posted @ 2020-09-09 23:43  森淼clover  阅读(421)  评论(0编辑  收藏  举报