win10安装ubuntu 20.04 LTS

1 按windows键,点击设置按键

在这里插入图片描述

2 进入设置,点击更新和安全

在这里插入图片描述

3 进入更新与安全,点击开发者选项,开启开发人员模式

在这里插入图片描述

4 搜索并打开控制面板,点击程序

在这里插入图片描述

5 点击启动或关闭Windows功能

在这里插入图片描述

6 勾选适用于Linux的Windows子系统

在这里插入图片描述

7 点击立即重启

在这里插入图片描述

8 重启之后搜索bash,点击运行命令

在这里插入图片描述

9 第一次运行bash.exe,系统会提示您接受服务条款。 那么该命令将从Windows Store下载Bash on Ubuntu on Windows。(由于我的电脑运行之后没反应,所以我使用下面一种方式)

10 搜索并打开Microsoft Store

在这里插入图片描述

在这里插入图片描述

11 在搜索栏搜索Ubuntu

在这里插入图片描述

12 选择Ubuntu 20.04 LTS,下载并安装,安装好后是以下界面

在这里插入图片描述

13 安装好后右上角会呈现启动界面,点击启动,会要求你输入Enter new UNIX username:(输入用户名)

在这里插入图片描述
用户名第一个字母不能是大写,不然会提示
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM] configuration variable. Use the `–force-badname’
option to relax this check or reconfigure NAME_REGEX.

14 填好用户名和密码后就可以使用了

在这里插入图片描述

15 安装好后可以更改默认下载源设置,将/etc/apt/sources.list文件内的文件替换为

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-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial-backports 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-proposed main restricted universe multiverse

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

在这里插入图片描述
在这里插入图片描述

16 打开ubuntu后切换到f盘的命令

@LAPTOP-QFN7FH37:~$ cd /mnt/f
@LAPTOP-QFN7FH37:/mnt/f$

参考:
如何在Window10中安装linux子系统

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值