当前位置:网站首页>Wsl2.0 installation
Wsl2.0 installation
2022-07-05 16:58:00 【Hepburn he0】
WSL yes windows Subsystem , Can run Linux,WSL2.0 contrast 1.0 Complete Linux kernel 、 trusteeship VM Full compatibility with system calls
The installation conditions :
win+r Input winver Check windows edition , need windows10 18917 Or later 

Installation steps :
- Enable for liunx Of windows System , open Powershell Input :
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart


- Enable virtualization
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- download 64x Of linux Kernel upgrade package and install
- Set up wsl The default version
wsl --set-default-version 2
- install Ubuntu20.04LTS, open Microsoft Store, find Ubuntu 20.04LTS Click Install , After installation, open and set the initial user name and password

- Replace linux Software source of subsystem and update
Because the default software source is Ubuntu Official website , It needs to be set as the image of domestic Alibaba to improve the speed
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
Common problem solving
- WslRegisterDistribution Failed with errors 0x8007019e

reason : Not installed Windows Subsystem Support
solve :
Method 1 :powershell Input in
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
enter Y, Automatically restart the computer
Method 2 : not enabled “ Apply to Linux Of Windows Subsystem ” Optional components :
open “ Control panel ” -> “ Procedures and functions ” -> “ Turn on or off Windows function ”-> Choose “ Apply to Linux Of Windows Subsystem ”, Or use the... Described at the beginning of this article PowerShell cmdlet.
- WslRegisterDistribution failed with error: 0x800701bc

reason :wsl1 Upgrade to wsl2 after , The kernel is not upgraded , So this kind of error prompt will appear , Go to Microsoft WSL The download and installation on the official website is applicable to x64 The latest of computers WSL2 Linux Just update the kernel package
solve :
Download the latest wsl Installation package
Download address :https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
边栏推荐
- 调查显示传统数据安全工具面对勒索软件攻击的失败率高达 60%
- Timestamp strtotime the day before or after the date
- 【刷题篇】有效的数独
- [js] skill simplification if empty judgment
- Bs-xx-042 implementation of personnel management system based on SSM
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- 树莓派4b安装Pytorch1.11
- [es6] add if judgment or ternary operator judgment in the template string
- composer安装报错:No composer.lock file present.
- Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
猜你喜欢

Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely

Enter a command with the keyboard

Domestic API management artifact used by the company

File operation --i/o

解决CMakeList find_package找不到Qt5,找不到ECM

高数 | 旋转体体积计算方法汇总、二重积分计算旋转体体积

"21 days proficient in typescript-3" - install and build a typescript development environment md

中国广电正式推出5G服务,中国移动赶紧推出免费服务挽留用户

二叉树相关OJ题

Win11如何给应用换图标?Win11给应用换图标的方法
随机推荐
【729. 我的日程安排表 I】
The difference between searching forward index and inverted index
[729. My Schedule i]
数据访问 - EntityFramework集成
拷贝方式之DMA
Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
tf. sequence_ Mask function explanation case
二叉树相关OJ题
Win11如何给应用换图标?Win11给应用换图标的方法
How was the middle table destroyed?
Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
有序链表集合求交集 方法 总结
[es6] add if judgment or ternary operator judgment in the template string
【刷题篇】有效的数独
精准防疫有“利器”| 芯讯通助力数字哨兵护航复市
Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
关于new Map( )还有哪些是你不知道的
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
C# TCP如何限制单个客户端的访问流量
Deep dive kotlin synergy (XXI): flow life cycle function