Ubuntu 在 Windows 上崩溃:0x80040326 Wsl 错误

145 windows ubuntu windows-subsystem-for-linux

我在 Windows 上安装了 Ubuntu 22.04 应用程序。它工作得很好,直到有一天它崩溃了,现在当我尝试在 Windows 上启动 Ubuntu 时,我得到的只是这个错误代码。

Error: 0x80040326
Error code: Wsl/Service/0x80040326
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

我正在运行 Windows powershell 版本 2

 wsl --list --verbose
  NAME            STATE           VERSION
* Ubuntu-22.04    Running         2
Run Code Online (Sandbox Code Playgroud)

我使用的是 Microsoft Office Home 10.0.22621 Build 22621

关于我能做什么有什么想法吗?谷歌搜索中“0x80040326”的点击量并不多

安装新副本不起作用:

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: xxxxx
New password:
Retype new password:
Sorry, passwords do not match.
passwd: Authentication token manipulation error
passwd: password unchanged
Try again? [y/N] y
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
Error: 0x80040326
Error code: Wsl/Service/0x80040326
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

小智 226

我有同样的问题,但刚刚解决了。

更新您的 wsl 系统。

wsl --update
Run Code Online (Sandbox Code Playgroud)

  • 我不得不多次这样做 (13认同)

小智 16

Windows 更新因破坏后台运行而臭名昭著。

解决此问题的最佳方法是:

  1. 在管理员模式下打开 PowerShell 或命令提示符窗口
  2. 运行命令wsl.exe --update
  3. 再次运行wsl.exe以查看是否可以访问默认的 WSL 发行版,否则重新启动笔记本电脑或台式机即可解决问题

或者,您也可以使用以下命令回滚内核版本以建立工作子系统wsl.exe --update --rollback


小智 9

昨天更新windows后也出现同样的问题。

wsl --update
Run Code Online (Sandbox Code Playgroud)

正如其他人所说,这有效,但是在运行命令后尝试启动 wsl 时它仍然崩溃。运行 wsl 更新后大约一分钟左右开始工作,不确定是否有某些后台进程正在运行或其他...