第一步,依次打开:设置--》更新和安全--》开发者选项--》开发忍人员模式

如下图

 

window10家庭版安装Linux子系统步骤

window10家庭版安装Linux子系统步骤

window10家庭版安装Linux子系统步骤 

 window10家庭版安装Linux子系统步骤

 第二步,依次打开:控制面板--》程序--》启用或关闭windows功能 --》(选中)适用于linux的windows子系统

如下图

window10家庭版安装Linux子系统步骤

 window10家庭版安装Linux子系统步骤

 window10家庭版安装Linux子系统步骤

点击‘确认’之后,重启电脑使其生效。

第三步:在Microsoft Store下载ubuntu (我已安装)

window10家庭版安装Linux子系统步骤

 安装完成之后 点击运行,会提示输入用户名密码

安装中界面

window10家庭版安装Linux子系统步骤

设置用户名密码

window10家庭版安装Linux子系统步骤

设置完成

 window10家庭版安装Linux子系统步骤

第四步:更换映像数据源(因为默认的是国外的,下载安装应用较慢,将其更换为阿里的,也有人改为清华大学的,自行选择)

1、先备份source.list源文件

执行命令:sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

或者执行:sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak1

2、打开sources.list文件

① 执行 sudo vim /etc/apt/sources.list (会创建出一个空的文件,很多行~符合开头)

② 输入" i " 使其变为可编辑状态(最后一行会出现 input字样)

3、复制数据源(阿里)


deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  

deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  

##测试版源  

deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  

# 源码  

deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  

##测试版源  

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  

# Canonical 合作伙伴和附加  

deb http://archive.canonical.com/ubuntu/ xenial partner  

deb http://extras.ubuntu.com/ubuntu/ xenial main  
4、粘贴进去

5、先按Esc键退出编辑状态 --》执行 :wq  退出当前页面

6、执行命令 一下两个命令,更新源和软件


sudo apt-get update

sudo apt-get upgrade
完成

 

 

相关文章: