(WSL error at Startup)按任意键继续
(WSL error at Startup) Press any key to continue
问题:
当我启动Ubuntu 20.04时,弹出:“Press any key to continue...”,然后如果我按任意键,它会立即退出。这会阻止我在 Ubuntu WSL 中使用(键入任何命令)。 (今天突然出现,这两天一直正常。)
Screenshot: Press any key to continue pops up after startup
尝试次数:
LxssManager 服务正在 运行ning。但是 LxssManagerUser 和 LxssManagerUser_60d78 被停止了。手动启动这两项服务无济于事,因为它们会在之后自动停止。
Hyper-V 服务设置为自动。启用虚拟化模式(任务管理器 -> 性能 -> CPU)
尝试重新运行从这里更新 https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel,但它显示未安装 WSL(这很奇怪,因为之前用了很久)
环境:
OS:Microsoft Windows 10 系列,Insider Preview
版本:10.0.20152 版本 20152
系统类型:基于 x64
来自https://github.com/microsoft/WSL/issues/4177#issuecomment-597736482
wsl.exe 和 Proxifier 之间存在冲突。
Proxifier的开发者给出了解决方案
Thanks for the info.
We have reproduced this issue. Apparently, wsl.exe displays this error
if Winsock LSP DLL gets loaded into its process.
The easiest solution is to use WSCSetApplicationCategory WinAPI call
for wsl.exe to prevent this. Under the hood the call creates an entry
for wsl.exe at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_Catalog
This tells Windows not to load LSP DLLs into wsl.exe process.
We have a tool that can make this call:
www.proxifier.com/tmp/Test20200228/NoLsp.exe
Please just run as admin with the full path to wsl.exe as the
parameter: NoLsp.exe c:\windows\system32\wsl.exe
This has fixed the problem in my case.
Please let me know how it works for you.
而且对我来说效果很好!
我通过下载 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msimsi 并执行它来解决。
我在资源管理器中双击 WSL 虚拟磁盘映像不小心挂载了它,它仍然挂载到我的机器上,即使它报告了一个错误,导致挂载它无用。从磁盘管理中卸载 vdisk 解决了我的问题。
这太神奇了!转到 Windows 命令提示符并 运行 以下命令:
netsh winsock reset
然后重新启动计算机。注意:不要关机,因为它对我不起作用。相反,重新启动!
可以找到更多答案here。
我进入了 BIOS 并不得不从那里启用虚拟化
问题:
当我启动Ubuntu 20.04时,弹出:“Press any key to continue...”,然后如果我按任意键,它会立即退出。这会阻止我在 Ubuntu WSL 中使用(键入任何命令)。 (今天突然出现,这两天一直正常。)
Screenshot: Press any key to continue pops up after startup
尝试次数:
LxssManager 服务正在 运行ning。但是 LxssManagerUser 和 LxssManagerUser_60d78 被停止了。手动启动这两项服务无济于事,因为它们会在之后自动停止。
Hyper-V 服务设置为自动。启用虚拟化模式(任务管理器 -> 性能 -> CPU)
尝试重新运行从这里更新 https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel,但它显示未安装 WSL(这很奇怪,因为之前用了很久)
环境:
OS:Microsoft Windows 10 系列,Insider Preview
版本:10.0.20152 版本 20152
系统类型:基于 x64
来自https://github.com/microsoft/WSL/issues/4177#issuecomment-597736482
wsl.exe 和 Proxifier 之间存在冲突。
Proxifier的开发者给出了解决方案
Thanks for the info.
We have reproduced this issue. Apparently, wsl.exe displays this error if Winsock LSP DLL gets loaded into its process.
The easiest solution is to use WSCSetApplicationCategory WinAPI call for wsl.exe to prevent this. Under the hood the call creates an entry for wsl.exe at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_Catalog This tells Windows not to load LSP DLLs into wsl.exe process.
We have a tool that can make this call: www.proxifier.com/tmp/Test20200228/NoLsp.exe
Please just run as admin with the full path to wsl.exe as the parameter: NoLsp.exe c:\windows\system32\wsl.exe
This has fixed the problem in my case.
Please let me know how it works for you.
而且对我来说效果很好!
我通过下载 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msimsi 并执行它来解决。
我在资源管理器中双击 WSL 虚拟磁盘映像不小心挂载了它,它仍然挂载到我的机器上,即使它报告了一个错误,导致挂载它无用。从磁盘管理中卸载 vdisk 解决了我的问题。
这太神奇了!转到 Windows 命令提示符并 运行 以下命令:
netsh winsock reset
然后重新启动计算机。注意:不要关机,因为它对我不起作用。相反,重新启动!
可以找到更多答案here。
我进入了 BIOS 并不得不从那里启用虚拟化