当前位置:网站首页>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
边栏推荐
- 浏览器渲染原理以及重排与重绘
- Hiengine: comparable to the local cloud native memory database engine
- What is ROM
- Copy mode DMA
- How can C TCP set heartbeat packets to be elegant?
- 如何将mysql卸载干净
- ECU introduction
- Etcd build a highly available etcd cluster
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- [wechat applet] read the life cycle and route jump of the applet
猜你喜欢

【刷題篇】鹅廠文化衫問題

Global Data Center released DC brain system, enabling intelligent operation and management through science and technology

用键盘输入一条命令

Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要

Jarvis OJ Flag
![[729. My schedule I]](/img/e3/32914227d00cf7595ee850e60f2b72.png)
[729. My schedule I]

dried food! Semi supervised pre training dialogue model space

数据访问 - EntityFramework集成
![[61dctf]fm](/img/22/3e4e3f1679a27d8b905684bb709905.png)
[61dctf]fm

中间表是如何被消灭的?
随机推荐
【刷题篇】有效的数独
PHP 严格模式
外盘期货平台如何辨别正规安全?
Jarvis OJ Flag
齐宣王典故
Enter a command with the keyboard
Iphone14 with pill screen may trigger a rush for Chinese consumers
Timestamp strtotime the day before or after the date
PHP talent recruitment system development source code recruitment website source code secondary development
Deep dive kotlin synergy (XXI): flow life cycle function
【 brosser le titre 】 chemise culturelle de l'usine d'oies
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
China Radio and television officially launched 5g services, and China Mobile quickly launched free services to retain users
Binary tree related OJ problems
Sentinel-流量防卫兵
如何将mysql卸载干净
Jarvis OJ 远程登录协议
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
How to uninstall MySQL cleanly
浏览器渲染原理以及重排与重绘