1、在控制面板启用Linux子系统

2、重启电脑,然后打开windows store 搜索Ubuntu

3、等待下载完成后,启动Ubuntu,

4、首先更改root密码
#:sudo passwd root
[sudo] password for zyj:
Enter new UNIX password:
Retype new UNIX password:
5、更换软件源
先备份原软件源
sduo cp /etc/apt/sources.list /etc/apt/sources.list.backup
添加阿里源
sudo vi /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
6、更新&升级
sudo apt-get update
sudo apt-get upgrade
7、安装wget git
sudo apt-get install wget
sudo apt-get install git
网友评论