我正在尝试在 Windows 10 中运行 WSL。但是,这样做会返回一个模糊的The specified module could not be found
错误。我最初认为这是 Docker 的问题,直到我尝试独立运行 WSL。
我卸载了我的 WSL 实例(以及 Docker)的所有痕迹,然后尝试从 Windows 商店重新安装它们。运行该ubuntu
命令会产生以下输出:
PS C:\Users\Jesse> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007007e
Error: 0x8007007e The specified module could not be found.
Press any key to continue...
wsl --status
显示以下输出:
PS C:\Users\Jesse> wsl --status
Default Version: 2
Windows Subsystem for Linux was last updated on 3/29/2022
WSL automatic updates are on.
Kernel version: 5.10.102.1
这是我的 Windows 版本:
Edition Windows 10 Pro
Version 21H2
Installed on 12/24/2021
OS build 19044.1645
Experience Windows Feature Experience Pack 120.2212.4170.0
这是 的输出bcdedit /v
。我不知道它是否真的相关,但另一个关于 WSL 困难的超级用户问题包括它。
PS C:\Users\Jesse> bcdedit /v
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=\Device\HarddiskVolume2
path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default {65875d57-62bf-11ec-bef5-a8a1599b691e}
resumeobject {65875d56-62bf-11ec-bef5-a8a1599b691e}
displayorder {65875d57-62bf-11ec-bef5-a8a1599b691e}
{65875d5a-62bf-11ec-bef5-a8a1599b691e}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 1
displaybootmenu No
customactions 0x1000044000001
0x54000001
custom:54000001 {65875d5a-62bf-11ec-bef5-a8a1599b691e}
Windows Boot Loader
-------------------
identifier {65875d57-62bf-11ec-bef5-a8a1599b691e}
device partition=C:
path \windows\system32\winload.efi
description Windows 10
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence {65875d58-62bf-11ec-bef5-a8a1599b691e}
displaymessageoverride Recovery
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \windows
resumeobject {65875d56-62bf-11ec-bef5-a8a1599b691e}
nx OptIn
bootmenupolicy Legacy
hypervisorlaunchtype Auto
Windows Boot Loader
-------------------
identifier {65875d5a-62bf-11ec-bef5-a8a1599b691e}
device ramdisk=[R:]\sources\recoveryboot.wim,{65875d5b-62bf-11ec-bef5-a8a1599b691e}
path \WINDOWS\SYSTEM32\BOOT\WINLOAD.efi
description LT_Recovery
locale EN_US
osdevice ramdisk=[R:]\sources\recoveryboot.wim,{65875d5b-62bf-11ec-bef5-a8a1599b691e}
systemroot \WINDOWS
detecthal Yes
winpe Yes
这是输出coreinfo64
:
Coreinfo v3.52 - Dump information on system CPU and memory topology
Copyright (C) 2008-2021 Mark Russinovich
Sysinternals - www.sysinternals.com
AMD Ryzen Threadripper 2950X 16-Core Processor
AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD
Microcode signature: 00000000
HTT * Multicore
CET - Supports Control Flow Enforcement Technology
Kernel CET - Kernel-mode CET Enabled
User CET - User-mode CET Allowed
HYPERVISOR * Hypervisor is present
VMX - Supports Intel hardware-assisted virtualization
SVM - Supports AMD hardware-assisted virtualization
X64 * Supports 64-bit mode
SMX - Supports Intel trusted execution
SKINIT - Supports AMD SKINIT
SGX - Supports Intel SGX
NX * Supports no-execute page protection
SMEP * Supports Supervisor Mode Execution Prevention
SMAP * Supports Supervisor Mode Access Prevention
PAGE1GB * Supports 1 GB large pages
PAE * Supports > 32-bit physical addresses
PAT * Supports Page Attribute Table
PSE * Supports 4 MB pages
PSE36 * Supports > 32-bit address 4 MB pages
PGE * Supports global bit in page tables
SS - Supports bus snooping for cache operations
VME * Supports Virtual-8086 mode
RDWRFSGSBASE * Supports direct GS/FS base access
FPU * Implements i387 floating point instructions
MMX * Supports MMX instruction set
MMXEXT * Implements AMD MMX extensions
3DNOW - Supports 3DNow! instructions
3DNOWEXT - Supports 3DNow! extension instructions
SSE * Supports Streaming SIMD Extensions
SSE2 * Supports Streaming SIMD Extensions 2
SSE3 * Supports Streaming SIMD Extensions 3
SSSE3 * Supports Supplemental SIMD Extensions 3
SSE4a * Supports Streaming SIMDR Extensions 4a
SSE4.1 * Supports Streaming SIMD Extensions 4.1
SSE4.2 * Supports Streaming SIMD Extensions 4.2
AES * Supports AES extensions
AVX * Supports AVX instruction extensions
AVX2 * Supports AVX2 instruction extensions
AVX-512-F - Supports AVX-512 Foundation instructions
AVX-512-DQ - Supports AVX-512 double and quadword instructions
AVX-512-IFAMA - Supports AVX-512 integer Fused multiply-add instructions
AVX-512-PF - Supports AVX-512 prefetch instructions
AVX-512-ER - Supports AVX-512 exponential and reciprocal instructions
AVX-512-CD - Supports AVX-512 conflict detection instructions
AVX-512-BW - Supports AVX-512 byte and word instructions
AVX-512-VL - Supports AVX-512 vector length instructions
FMA * Supports FMA extensions using YMM state
MSR * Implements RDMSR/WRMSR instructions
MTRR * Supports Memory Type Range Registers
XSAVE * Supports XSAVE/XRSTOR instructions
OSXSAVE * Supports XSETBV/XGETBV instructions
RDRAND * Supports RDRAND instruction
RDSEED * Supports RDSEED instruction
CMOV * Supports CMOVcc instruction
CLFSH * Supports CLFLUSH instruction
CX8 * Supports compare and exchange 8-byte instructions
CX16 * Supports CMPXCHG16B instruction
BMI1 * Supports bit manipulation extensions 1
BMI2 * Supports bit manipulation extensions 2
ADX * Supports ADCX/ADOX instructions
DCA - Supports prefetch from memory-mapped device
F16C * Supports half-precision instruction
FXSR * Supports FXSAVE/FXSTOR instructions
FFXSR * Supports optimized FXSAVE/FSRSTOR instruction
MONITOR - Supports MONITOR and MWAIT instructions
MOVBE * Supports MOVBE instruction
ERMSB - Supports Enhanced REP MOVSB/STOSB
PCLMULDQ * Supports PCLMULDQ instruction
POPCNT * Supports POPCNT instruction
LZCNT * Supports LZCNT instruction
SEP * Supports fast system call instructions
LAHF-SAHF * Supports LAHF/SAHF instructions in 64-bit mode
HLE - Supports Hardware Lock Elision instructions
RTM - Supports Restricted Transactional Memory instructions
DE * Supports I/O breakpoints including CR4.DE
DTES64 - Can write history of 64-bit branch addresses
DS - Implements memory-resident debug buffer
DS-CPL - Supports Debug Store feature with CPL
PCID - Supports PCIDs and settable CR4.PCIDE
INVPCID - Supports INVPCID instruction
PDCM - Supports Performance Capabilities MSR
RDTSCP * Supports RDTSCP instruction
TSC * Supports RDTSC instruction
TSC-DEADLINE - Local APIC supports one-shot deadline timer
TSC-INVARIANT * TSC runs at constant rate
xTPR - Supports disabling task priority messages
EIST - Supports Enhanced Intel Speedstep
ACPI - Implements MSR for power management
TM - Implements thermal monitor circuitry
TM2 - Implements Thermal Monitor 2 control
APIC * Implements software-accessible local APIC
x2APIC - Supports x2APIC
CNXT-ID - L1 data cache mode adaptive or BIOS
MCE * Supports Machine Check, INT18 and CR4.MCE
MCA * Implements Machine Check Architecture
PBE - Supports use of FERR#/PBE# pin
PSN - Implements 96-bit processor serial number
PREFETCHW * Supports PREFETCHW instruction
Maximum implemented CPUID leaves: 0000000D (Basic), 8000001E (Extended).
Maximum implemented address width: 48 bits (virtual), 48 bits (physical).
Processor signature: 00800F82
Logical to Physical Processor Map:
**------------------------------ Physical Processor 0 (Hyperthreaded)
--**---------------------------- Physical Processor 1 (Hyperthreaded)
----**-------------------------- Physical Processor 2 (Hyperthreaded)
------**------------------------ Physical Processor 3 (Hyperthreaded)
--------**---------------------- Physical Processor 4 (Hyperthreaded)
----------**-------------------- Physical Processor 5 (Hyperthreaded)
------------**------------------ Physical Processor 6 (Hyperthreaded)
--------------**---------------- Physical Processor 7 (Hyperthreaded)
----------------**-------------- Physical Processor 8 (Hyperthreaded)
------------------**------------ Physical Processor 9 (Hyperthreaded)
--------------------**---------- Physical Processor 10 (Hyperthreaded)
----------------------**-------- Physical Processor 11 (Hyperthreaded)
------------------------**------ Physical Processor 12 (Hyperthreaded)
--------------------------**---- Physical Processor 13 (Hyperthreaded)
----------------------------**-- Physical Processor 14 (Hyperthreaded)
------------------------------** Physical Processor 15 (Hyperthreaded)
Logical Processor to Socket Map:
******************************** Socket 0
Logical Processor to NUMA Node Map:
******************************** NUMA Node 0
- NUMA Node 1
Approximate Cross-NUMA Node Access Cost (relative to fastest):
00 01
00: 1.3 1.0
01: 0.0 0.0
Logical Processor to Cache Map:
**------------------------------ Data Cache 0, Level 1, 32 KB, Assoc 8, LineSize 64
**------------------------------ Instruction Cache 0, Level 1, 64 KB, Assoc 4, LineSize 64
**------------------------------ Unified Cache 0, Level 2, 512 KB, Assoc 8, LineSize 64
********------------------------ Unified Cache 1, Level 3, 8 MB, Assoc 16, LineSize 64
--**---------------------------- Data Cache 1, Level 1, 32 KB, Assoc 8, LineSize 64
--**---------------------------- Instruction Cache 1, Level 1, 64 KB, Assoc 4, LineSize 64
--**---------------------------- Unified Cache 2, Level 2, 512 KB, Assoc 8, LineSize 64
----**-------------------------- Data Cache 2, Level 1, 32 KB, Assoc 8, LineSize 64
----**-------------------------- Instruction Cache 2, Level 1, 64 KB, Assoc 4, LineSize 64
----**-------------------------- Unified Cache 3, Level 2, 512 KB, Assoc 8, LineSize 64
------**------------------------ Data Cache 3, Level 1, 32 KB, Assoc 8, LineSize 64
------**------------------------ Instruction Cache 3, Level 1, 64 KB, Assoc 4, LineSize 64
------**------------------------ Unified Cache 4, Level 2, 512 KB, Assoc 8, LineSize 64
--------**---------------------- Data Cache 4, Level 1, 32 KB, Assoc 8, LineSize 64
--------**---------------------- Instruction Cache 4, Level 1, 64 KB, Assoc 4, LineSize 64
--------**---------------------- Unified Cache 5, Level 2, 512 KB, Assoc 8, LineSize 64
--------********---------------- Unified Cache 6, Level 3, 8 MB, Assoc 16, LineSize 64
----------**-------------------- Data Cache 5, Level 1, 32 KB, Assoc 8, LineSize 64
----------**-------------------- Instruction Cache 5, Level 1, 64 KB, Assoc 4, LineSize 64
----------**-------------------- Unified Cache 7, Level 2, 512 KB, Assoc 8, LineSize 64
------------**------------------ Data Cache 6, Level 1, 32 KB, Assoc 8, LineSize 64
------------**------------------ Instruction Cache 6, Level 1, 64 KB, Assoc 4, LineSize 64
------------**------------------ Unified Cache 8, Level 2, 512 KB, Assoc 8, LineSize 64
--------------**---------------- Data Cache 7, Level 1, 32 KB, Assoc 8, LineSize 64
--------------**---------------- Instruction Cache 7, Level 1, 64 KB, Assoc 4, LineSize 64
--------------**---------------- Unified Cache 9, Level 2, 512 KB, Assoc 8, LineSize 64
----------------**-------------- Data Cache 8, Level 1, 32 KB, Assoc 8, LineSize 64
----------------**-------------- Instruction Cache 8, Level 1, 64 KB, Assoc 4, LineSize 64
----------------**-------------- Unified Cache 10, Level 2, 512 KB, Assoc 8, LineSize 64
----------------********-------- Unified Cache 11, Level 3, 8 MB, Assoc 16, LineSize 64
------------------**------------ Data Cache 9, Level 1, 32 KB, Assoc 8, LineSize 64
------------------**------------ Instruction Cache 9, Level 1, 64 KB, Assoc 4, LineSize 64
------------------**------------ Unified Cache 12, Level 2, 512 KB, Assoc 8, LineSize 64
--------------------**---------- Data Cache 10, Level 1, 32 KB, Assoc 8, LineSize 64
--------------------**---------- Instruction Cache 10, Level 1, 64 KB, Assoc 4, LineSize 64
--------------------**---------- Unified Cache 13, Level 2, 512 KB, Assoc 8, LineSize 64
----------------------**-------- Data Cache 11, Level 1, 32 KB, Assoc 8, LineSize 64
----------------------**-------- Instruction Cache 11, Level 1, 64 KB, Assoc 4, LineSize 64
----------------------**-------- Unified Cache 14, Level 2, 512 KB, Assoc 8, LineSize 64
------------------------**------ Data Cache 12, Level 1, 32 KB, Assoc 8, LineSize 64
------------------------**------ Instruction Cache 12, Level 1, 64 KB, Assoc 4, LineSize 64
------------------------**------ Unified Cache 15, Level 2, 512 KB, Assoc 8, LineSize 64
------------------------******** Unified Cache 16, Level 3, 8 MB, Assoc 16, LineSize 64
--------------------------**---- Data Cache 13, Level 1, 32 KB, Assoc 8, LineSize 64
--------------------------**---- Instruction Cache 13, Level 1, 64 KB, Assoc 4, LineSize 64
--------------------------**---- Unified Cache 17, Level 2, 512 KB, Assoc 8, LineSize 64
----------------------------**-- Data Cache 14, Level 1, 32 KB, Assoc 8, LineSize 64
----------------------------**-- Instruction Cache 14, Level 1, 64 KB, Assoc 4, LineSize 64
----------------------------**-- Unified Cache 18, Level 2, 512 KB, Assoc 8, LineSize 64
------------------------------** Data Cache 15, Level 1, 32 KB, Assoc 8, LineSize 64
------------------------------** Instruction Cache 15, Level 1, 64 KB, Assoc 4, LineSize 64
------------------------------** Unified Cache 19, Level 2, 512 KB, Assoc 8, LineSize 64
Logical Processor to Group Map:
******************************** Group 0
以下是一些其他相关事实:
- 我以前在这台机器上使用过 WSL,没有任何问题。我不知道发生了什么变化。
- 这个GitHub 讨论(以前是一个问题)表明“在 [我的] 系统上注册一个相关的 hyper-v 组件似乎很麻烦。” 具体来说,
vmsmb.dll
可能是问题的一部分。 - 我已禁用(然后重新启动)并启用(然后再次重新启动)以下 Windows 功能。这样做并没有解决问题。我启用了其他可选功能,但它们不相关。
- 容器
- 超V
- Hyper-V 管理工具
- 适用于 Windows PowerShell 的 Hyper-V 模块
- Hyper-V 平台
- Hyper-V 管理程序
- Hyper-V 服务
- 虚拟机平台
- Windows 管理程序平台
- 适用于 Linux 的 Windows 子系统
- 我最初认为问题是 Docker,但我已经排除了它。
wsl -l -v
表明Windows Subsystem for Linux has no installed distributions.
- 我在这里拿了一个跟踪文件。我不知道里面有什么或如何解释它。
- 按照这个不相关但方便的答案中的描述运行 DISM 和 SFC并不能解决问题。
- 我没有安装任何第三方虚拟化软件(例如 VirtualBox、VMWare)。
有小费吗?