当前位置:网站首页>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
边栏推荐
- DenseNet
- 数据访问 - EntityFramework集成
- ECU introduction
- 美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
- [first lecture on robot coordinate system]
- Games101 notes (I)
- Deep dive kotlin synergy (XXI): flow life cycle function
- Jarvis OJ shell流量分析
- 机器学习编译第2讲:张量程序抽象
- Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
猜你喜欢
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
【机器人坐标系第一讲】
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
中间表是如何被消灭的?
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
ECU introduction
composer安装报错:No composer.lock file present.
Application of threshold homomorphic encryption in privacy Computing: Interpretation
如何安装mysql
How to set the WiFi password of the router on the computer
随机推荐
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
[729. My schedule I]
【剑指 Offer】66. 构建乘积数组
机器学习编译第2讲:张量程序抽象
Jarvis OJ webshell analysis
挖财股票开户安全吗?怎么开股票账户是安全?
美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
Etcd 构建高可用Etcd集群
[es6] 模板字符串内添加if判断或添加三元运算符判断
中国广电正式推出5G服务,中国移动赶紧推出免费服务挽留用户
composer安装报错:No composer.lock file present.
数据访问 - EntityFramework集成
高数 | 旋转体体积计算方法汇总、二重积分计算旋转体体积
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
[es6] add if judgment or ternary operator judgment in the template string
The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale
有序链表集合求交集 方法 总结
Sentinel-流量防卫兵