询问者
vs2019无法连接wsl2进行调试

问题
-
您好,请问visual studio 2019突然无法连接到wsl2子系统进行调试是为什么呢?用remote-ssh可以连接到wsl2,用vscode可以连接到wsl2。下面是vs2019连接的错误日志。
15:42:48.5719760 [Info, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:48.5949778 [Info, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:111904c6-14f5-4058-97d0-80526f304018 id:ccd3e018-a9b3-49ac-9838-4db96b1c1af7
15:42:48.5949778 [Info, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo 111904c6-14f5-4058-97d0-80526f304018" to WSL shell
15:42:48.5969776 [Info, Thread 8] liblinux.Local.Shell.WindowsSubsystemShell: Read async: ccd3e018-a9b3-49ac-9838-4db96b1c1af7
15:42:48.7069768 [Info, Thread 10] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask delegate start
15:42:48.7089812 [Info, Thread 10] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask CreateLocalSysroot
15:42:48.7219763 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:48.7249791 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:6cae90fb-5939-4449-b373-ab760b5136cc id:c0515309-a55e-4930-96bd-feb50599efae
15:42:48.7249791 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo 6cae90fb-5939-4449-b373-ab760b5136cc" to WSL shell
15:42:48.7249791 [Info, Thread 52] liblinux.Local.Shell.WindowsSubsystemShell: Read async: c0515309-a55e-4930-96bd-feb50599efae
15:42:48.9710758 [Info, Thread 22] liblinux.Local.Shell.WindowsSubsystemShell: ccd3e018-a9b3-49ac-9838-4db96b1c1af7 is exiting
15:42:48.9730746 [Info, Thread 50] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:48.9730746 [Info, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed ccd3e018-a9b3-49ac-9838-4db96b1c1af7
15:42:48.9910805 [Error, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
15:42:48.9940747 [Error, Thread 24] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
15:42:49.0020745 [Info, Thread 52] liblinux.Local.Shell.WindowsSubsystemShell: c0515309-a55e-4930-96bd-feb50599efae is exiting
15:42:49.0040727 [Info, Thread 50] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:49.0040727 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed c0515309-a55e-4930-96bd-feb50599efae
15:42:49.0040727 [Error, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
15:42:49.0050751 [Error, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
15:42:49.0050751 [Error, Thread 10] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: Exception during AfterUpdateHeaders
15:42:49.1658805 [Error, Thread 10] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: liblinux.Local.Shell.WindowsSubsystemShellException: Could not open windows subsystem shell ---> liblinux.Local.Shell.WindowsSubsystemShellException: Failed to start WSL process ---> liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.Open(TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, Int32 timeout)
在 liblinux.IO.PathUtils.GetFullPath(ICommandHost`2 shell, String remotePath)
在 liblinux.Local.IO.WindowsSubsystemFileSystem.GetFullPath(String remotePath)
在 liblinux.Services.RemoteCompiler.ExpandRemotePaths(IEnumerable`1 paths, HashSet`1 expandedPaths)
在 liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__115.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 liblinux.Services.RemoteCompiler.<UpdateSysrootForProjectAsync>d__111.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare.<>c__DisplayClass26_0.<<UpdateHeaders>b__0>d.MoveNext()
15:42:49.1658805 [Info, Thread 10] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: UpdateHeadersFailed Failed updating headers from 'wsl_wsl'.
15:42:49.4900203 [Info, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:49.4930200 [Info, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:d3c1011f-a192-45a8-a0e6-a153013e14e4 id:5a4de3c0-4a47-4fc4-acdd-cf2dab1c2bfd
15:42:49.4930200 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: Read async: 5a4de3c0-4a47-4fc4-acdd-cf2dab1c2bfd
15:42:49.4930200 [Info, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo d3c1011f-a192-45a8-a0e6-a153013e14e4" to WSL shell
15:42:49.7195459 [Info, Thread 10] liblinux.Local.Shell.WindowsSubsystemShell: 5a4de3c0-4a47-4fc4-acdd-cf2dab1c2bfd is exiting
15:42:49.7225470 [Info, Thread 50] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
15:42:49.7225470 [Info, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed 5a4de3c0-4a47-4fc4-acdd-cf2dab1c2bfd
15:42:49.7235499 [Error, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
15:42:49.7235499 [Error, Thread 5] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
16:42:14.3191050 [Info, Thread 14] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask delegate start
16:42:14.3191050 [Info, Thread 14] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask CreateLocalSysroot
16:42:14.3201049 [Info, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
16:42:14.3291086 [Info, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:15ef0b0f-7fcb-4a34-98b6-2cb5a46a883e id:ded85643-b669-49a2-8d11-e6ed956b4c98
16:42:14.3291086 [Info, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo 15ef0b0f-7fcb-4a34-98b6-2cb5a46a883e" to WSL shell
16:42:14.3301064 [Info, Thread 67] liblinux.Local.Shell.WindowsSubsystemShell: Read async: ded85643-b669-49a2-8d11-e6ed956b4c98
16:42:14.7326351 [Info, Thread 67] liblinux.Local.Shell.WindowsSubsystemShell: ded85643-b669-49a2-8d11-e6ed956b4c98 is exiting
16:42:14.7386276 [Info, Thread 57] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
16:42:14.7386276 [Info, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed ded85643-b669-49a2-8d11-e6ed956b4c98
16:42:14.7386276 [Error, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
16:42:14.7396286 [Error, Thread 14] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
16:42:14.7396286 [Error, Thread 14] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: Exception during AfterUpdateHeaders
16:42:14.7406303 [Error, Thread 14] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: liblinux.Local.Shell.WindowsSubsystemShellException: Could not open windows subsystem shell ---> liblinux.Local.Shell.WindowsSubsystemShellException: Failed to start WSL process ---> liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.Open(TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, Int32 timeout)
在 liblinux.IO.PathUtils.GetFullPath(ICommandHost`2 shell, String remotePath)
在 liblinux.Local.IO.WindowsSubsystemFileSystem.GetFullPath(String remotePath)
在 liblinux.Services.RemoteCompiler.ExpandRemotePaths(IEnumerable`1 paths, HashSet`1 expandedPaths)
在 liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__115.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 liblinux.Services.RemoteCompiler.<UpdateSysrootForProjectAsync>d__111.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare.<>c__DisplayClass26_0.<<UpdateHeaders>b__0>d.MoveNext()
16:42:14.7406303 [Info, Thread 14] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: UpdateHeadersFailed Failed updating headers from 'wsl_wsl'.
21:04:18.5522171 [Info, Thread 129] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask delegate start
21:04:18.5522171 [Info, Thread 129] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask CreateLocalSysroot
21:04:18.5522171 [Info, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:18.5872298 [Info, Thread 109] liblinux.Local.Shell.WindowsSubsystemShell: Read async: 1471f732-813c-4a7b-ae2b-6f3468847a7c
21:04:18.5872298 [Info, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:8fa206b0-082f-4f31-bfec-7e236903a474 id:1471f732-813c-4a7b-ae2b-6f3468847a7c
21:04:18.5872298 [Info, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo 8fa206b0-082f-4f31-bfec-7e236903a474" to WSL shell
21:04:19.1849929 [Info, Thread 149] liblinux.Local.Shell.WindowsSubsystemShell: 1471f732-813c-4a7b-ae2b-6f3468847a7c is exiting
21:04:19.1870002 [Info, Thread 110] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:19.1870002 [Info, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed 1471f732-813c-4a7b-ae2b-6f3468847a7c
21:04:19.1870002 [Error, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
21:04:19.1880049 [Error, Thread 129] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
21:04:19.1880049 [Error, Thread 129] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: Exception during AfterUpdateHeaders
21:04:19.2299938 [Error, Thread 129] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: liblinux.Local.Shell.WindowsSubsystemShellException: Could not open windows subsystem shell ---> liblinux.Local.Shell.WindowsSubsystemShellException: Failed to start WSL process ---> liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.Open(TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, Int32 timeout)
在 liblinux.IO.PathUtils.GetFullPath(ICommandHost`2 shell, String remotePath)
在 liblinux.Local.IO.WindowsSubsystemFileSystem.GetFullPath(String remotePath)
在 liblinux.Services.RemoteCompiler.ExpandRemotePaths(IEnumerable`1 paths, HashSet`1 expandedPaths)
在 liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__115.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 liblinux.Services.RemoteCompiler.<UpdateSysrootForProjectAsync>d__111.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare.<>c__DisplayClass26_0.<<UpdateHeaders>b__0>d.MoveNext()
21:04:19.2299938 [Info, Thread 129] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: UpdateHeadersFailed Failed updating headers from 'wsl_wsl'.
21:04:19.4429979 [Info, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:19.4459952 [Info, Thread 140] liblinux.Local.Shell.WindowsSubsystemShell: Read async: a3b14fde-ff04-4e6b-917a-f9845a2154e7
21:04:19.4459952 [Info, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:69f08ecf-6798-4721-b729-1a9789f1e41b id:a3b14fde-ff04-4e6b-917a-f9845a2154e7
21:04:19.4459952 [Info, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo 69f08ecf-6798-4721-b729-1a9789f1e41b" to WSL shell
21:04:19.6612021 [Info, Thread 65] liblinux.Local.Shell.WindowsSubsystemShell: a3b14fde-ff04-4e6b-917a-f9845a2154e7 is exiting
21:04:19.6631980 [Info, Thread 125] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:19.6631980 [Info, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed a3b14fde-ff04-4e6b-917a-f9845a2154e7
21:04:19.6631980 [Error, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
21:04:19.6631980 [Error, Thread 78] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
21:04:29.0743095 [Info, Thread 223] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask delegate start
21:04:29.0743095 [Info, Thread 223] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: CreateVisualStudioNotificationsTask CreateLocalSysroot
21:04:29.0743095 [Info, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: Connecting to WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:29.0773209 [Info, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho sentinel:f827a844-e2da-41a0-97b2-afab48d33224 id:82295272-4082-4038-a033-e58fd7eaf2c9
21:04:29.0773209 [Info, Thread 173] liblinux.Local.Shell.WindowsSubsystemShell: Read async: 82295272-4082-4038-a033-e58fd7eaf2c9
21:04:29.0773209 [Info, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: Writing "echo f827a844-e2da-41a0-97b2-afab48d33224" to WSL shell
21:04:29.2537167 [Info, Thread 182] liblinux.Local.Shell.WindowsSubsystemShell: 82295272-4082-4038-a033-e58fd7eaf2c9 is exiting
21:04:29.2567194 [Info, Thread 125] liblinux.Local.Shell.WindowsSubsystemShell: Disconnecting from WSL at "C:\WINDOWS\sysnative\wsl.exe"
21:04:29.2567194 [Info, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: VerifyEcho failed 82295272-4082-4038-a033-e58fd7eaf2c9
21:04:29.2567194 [Error, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: Exception starting WSL process
21:04:29.2567194 [Error, Thread 223] liblinux.Local.Shell.WindowsSubsystemShell: liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
21:04:29.2567194 [Error, Thread 223] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: Exception during AfterUpdateHeaders
21:04:29.2577152 [Error, Thread 223] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: liblinux.Local.Shell.WindowsSubsystemShellException: Could not open windows subsystem shell ---> liblinux.Local.Shell.WindowsSubsystemShellException: Failed to start WSL process ---> liblinux.Local.Shell.WindowsSubsystemShellException: Echo command failing
在 liblinux.Local.Shell.WindowsSubsystemShell.VerifyEcho(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.WindowsSubsystemShell.StartWSLProcess(TimeSpan timeout)
在 liblinux.Local.Shell.WindowsSubsystemShell.Open(TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
--- 内部异常堆栈跟踪的结尾 ---
在 liblinux.Local.Shell.Commanding.LocalHostedCommand.Initialize(WindowsSubsystem windowsSubsystem)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, TimeSpan timeout)
在 liblinux.Local.Shell.Commanding.LocalCommandHost.ExecuteCommand(String commandText, Int32 timeout)
在 liblinux.IO.PathUtils.GetFullPath(ICommandHost`2 shell, String remotePath)
在 liblinux.Local.IO.WindowsSubsystemFileSystem.GetFullPath(String remotePath)
在 liblinux.Services.RemoteCompiler.ExpandRemotePaths(IEnumerable`1 paths, HashSet`1 expandedPaths)
在 liblinux.Services.RemoteCompiler.<CreateLocalSysrootAsync>d__115.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 liblinux.Services.RemoteCompiler.<UpdateSysrootForProjectAsync>d__111.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare.<>c__DisplayClass26_0.<<UpdateHeaders>b__0>d.MoveNext()
21:04:29.2577152 [Info, Thread 223] Microsoft.VisualStudio.Linux.LinuxHeadersUpdateTaskBare: UpdateHeadersFailed Failed updating headers from 'wsl_wsl'.
全部回复
-
Hi muse117,
如果你在Visual Studio 遇到关于WSL Linux项目问题,建议去Developer Community论坛寻求帮助:https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019
感谢你的理解。
Sincerely,
Anna
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com
- 已建议为答案 Silver Ring 2021年7月22日 7:03