gpt4 book ai didi

windows-subsystem-for-linux - (启动时出现 WSL 错误)按任意键继续

转载 作者:行者123 更新时间:2023-12-03 19:09:15 25 4
gpt4 key购买 nike

问题:
当我启动 Ubuntu 20.04 时,它弹出:“按任意键继续...”,然后如果我按任意键,它会立即退出。这阻止我在 Ubuntu WSL 中使用(输入任何命令)。 (今天突然发生。最近几天它一直在正常工作。)
Screenshot: Press any key to continue pops up after startup
尝试尝试:

  • LxssManager 服务正在运行。但 LxssManagerUser 和 LxssManagerUser_60d78 已停止。手动启动这两个服务无济于事,因为它们随后会自动停止。
  • Hyper-V 服务设置为自动。启用虚拟化模式(任务管理器 -> 性能 -> CPU)
  • 试图重新运行 来自这里的更新 https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel ,但它显示未安装 WSL(这很奇怪,因为我之前一直在使用它)

  • 环境:
  • 操作系统:Microsoft Windows 10 Family,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 errorif Winsock LSP DLL gets loaded into its process.

    The easiest solution is to use WSCSetApplicationCategory WinAPI callfor wsl.exe to prevent this. Under the hood the call creates an entryfor wsl.exe atHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_CatalogThis 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 theparameter: NoLsp.exe c:\windows\system32\wsl.exe

    This has fixed the problem in my case.

    Please let me know how it works for you.


    它对我很有效!

    关于windows-subsystem-for-linux - (启动时出现 WSL 错误)按任意键继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62738644/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com