Win11下Microsoft Store安装Ubuntu20.04踩坑解决指南

编程入门 行业动态 更新时间:2024-10-24 12:33:04

文章目录

  • 1. WslRegisterDistribution failed with error: 0x8007019e
  • 2. WslRegisterDistribution failed with error: 0x80370102
  • 3.WslRegisterDistribution failed with error: 0x800701bc

从Microsoft Store选择Ubuntu20.04下载安装完毕后,双击Ubuntu 20.04 LTS后报错:

1. WslRegisterDistribution failed with error: 0x8007019e

解决方法:

  1. 检查是否开启VT虚拟化
    打开 任务管理器 -> 性能

    如果没有启用需要更改BIOS设置,具体设置方法参考这篇文章
    https://www.yuchen.xyz/2021/09/17/Note on Ubuntu/

  2. 检查相关Windows功能是否开启

    win+Q键搜索->启用或关闭windows功能
    检查是用与Linux的Windows子系统选项是否开启

  3. 打开Windows PowerShell(管理员),输入:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    

2. WslRegisterDistribution failed with error: 0x80370102

解决方法:
打开Windows PowerShell(管理员),输入:

wsl --set-default-version 1 

3.WslRegisterDistribution failed with error: 0x800701bc

解决方法:

参考:https://www.yht7/news/30824

打开Windows PowerShell(管理员),输入:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

这两个安装完成直接 重启 !!!
然后继续在Windows PowerShell(管理员)输入:

wsl --set-version Ubuntu-20.04 2
wsl -l -v


此时,点击Ubuntu 20.04 LTS,成功启动,OK!

更多推荐

Win11下Microsoft Store安装Ubuntu20.04踩坑解决指南

本文发布于:2023-06-14 09:32:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1461262.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:指南   Microsoft   Store

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!