wsl2 出现“参考的对象类型不支持尝试的操作”的解决办法

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_Catalog\0408F7A3]
"AppFullPath"="C:\\Windows\\System32\\wsl.exe"
"PermittedLspCategories"=dword:80000000

WslRegisterDistribution failed with error: 0x800701bc

systemctl命令用不了

  • 使用service相关命令

-bash: service: command not found

  • yum install initscripts

ifconfig找不到

  • yum install net-tools

Win11 安装 Linux 子系统教程,错误代码解决和常用命令一览

https://baijiahao.baidu.com/s?id=1732407666113854109&wfr=spider&for=pc