Skip to content

WSL2 freezes randomly during apt upgrade on fresh Ubuntu install #41213

Closed as duplicate

Description

@Seeker0472

Windows Version

26200.8875

WSL Version

2.7.11.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux DESKTOP-LA3DVM5 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

Distro Version

Ubuntu 24.04

Other Software

None. I've just performed a fresh installation of Windows, updated it, and installed WSL.

Repro Steps

  1. Install WSL and create an Ubuntu instance (I have tried Ubuntu 24.04 and 26.04).
  2. Run sudo apt update && sudo apt upgrade. The process freezes.
  3. Even opening another terminal and running ps -aux also hangs.

Expected Behavior

The apt upgrade command completes without freezing.

Actual Behavior

apt upgrade sometimes gets stuck (freezes indefinitely).

Diagnostic Logs

WslLogs-2026-07-31_06-31-47.tar.gz

Activity

  1. github-actions commented on Jul 30, 2026

    @github-actions
    Contributor
    Diagnostic information
    .wslconfig found
    Detected appx version: 2.7.11.0
    Detected user visible error: Wsl/Service/CreateInstance/E_UNEXPECTED
    Found evidence of kernel panic: [    1.715854] Kernel panic - not syncing: Fatal exception
    
  2. ChenPi11 commented on Jul 31, 2026

    @ChenPi11

    Get stuck when post-upgrading libc6:amd64?

  3. ChenPi11 commented on Jul 31, 2026

    @ChenPi11

    Or other package's post-upgrading? Or get stuck when extracting packages?

  4. chemwolf6922 commented on Aug 4, 2026

    @chemwolf6922
    Contributor

    This looks like a duplicate of #41191. Please help take a look Mitchell Levy (@chessturo) .

    [    1.704618] ------------[ cut here ]------------
    [    1.705233] kernel BUG at fs/namei.c:844!
    [    1.705545] Oops: invalid opcode: 0000 [#1] SMP NOPTI
    [    1.705885] CPU: 27 UID: 0 PID: 322 Comm: ldconfig Not tainted 6.18.33.2-microsoft-standard-WSL2 #1 PREEMPT(none) 
    [    1.706250] RIP: 0010:try_to_unlazy+0xbc/0xe0
    [    1.706393] Code: ff 84 c0 75 b8 81 63 38 ff fe ff ff 45 31 e4 48 c7 43 40 00 00 00 00 e8 12 c1 d0 ff 44 89 e0 5b 41 5c 41 5d 5d c3 cc cc cc cc <0f> 0b 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 eb c8 0f 0b 66
    [    1.707182] RSP: 0018:ffffcfe44b253bb0 EFLAGS: 00010246
    [    1.707329] RAX: 0000000000000001 RBX: ffffcfe44b253c30 RCX: 0000000000000000
    [    1.707539] RDX: 0000000000000000 RSI: 00000000000002ae RDI: ffffcfe44b253c30
    [    1.707748] RBP: ffffcfe44b253bc8 R08: 0000000000000064 R09: ffffffffffffffcf
    [    1.707945] R10: 0000000000000011 R11: ffff8d984cc84c00 R12: ffff8d984dcd1800
    [    1.708142] R13: ffff8d984dcd1800 R14: 0000000000000000 R15: ffffcfe44b253d78
    [    1.708339] FS:  000055558c5043c0(0000) GS:ffff8d997c287000(0000) knlGS:0000000000000000
    [    1.708547] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [    1.708727] CR2: 000055558c534000 CR3: 000000010eaa3006 CR4: 0000000000b70ef0
    [    1.708925] Call Trace:
    [    1.709005]  <TASK>
    [    1.709084]  complete_walk+0x43/0xb0
    [    1.709195]  path_lookupat+0x9c/0x180
    [    1.709307]  filename_lookup+0xe2/0x1e0
    [    1.709418]  ? __x64_sys_newfstatat+0x20/0x30
    [    1.709562]  ? x64_sys_call+0x1b1d/0x20f0
    [    1.709674]  vfs_statx+0x69/0x100
    [    1.709802]  vfs_fstatat+0x83/0xc0
    [    1.709905]  __do_sys_newfstatat+0x29/0x60
    [    1.710040]  ? __seccomp_filter+0x39/0x5c0
    [    1.710158]  ? __secure_computing+0x7d/0xd0
    [    1.710271]  __x64_sys_newfstatat+0x20/0x30
    [    1.710383]  x64_sys_call+0x1b1d/0x20f0
    [    1.710493]  do_syscall_64+0x73/0x990
    [    1.710607]  ? irqentry_exit+0x3f/0x50
    [    1.710718]  ? exc_page_fault+0x7f/0x170
    [    1.710925]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
    [    1.711092] RIP: 0033:0x7658f7c404ee
    [    1.711212] Code: ff ff ff 64 c7 00 09 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 0b 31 c0 c3 0f 1f 84 00 00 00 00 00 48 c7 c2 b0
    [    1.711720] RSP: 002b:00007fffdfd97bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
    [    1.711924] RAX: ffffffffffffffda RBX: 000055558c5124f0 RCX: 00007658f7c404ee
    [    1.712135] RDX: 00007fffdfd97cd0 RSI: 00007fffdfd97bd0 RDI: 00000000ffffff9c
    [    1.712343] RBP: 00007fffdfd97e20 R08: 0000000000000073 R09: 0000000000000000
    [    1.712539] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffdfd97bd0
    [    1.712747] R13: 00007fffdfd97bd0 R14: 000055558c512470 R15: 000055558c505c70
    [    1.712975]  </TASK>
    [    1.713045] Modules linked in: br_netfilter bridge stp llc ip_tables tun
    [    1.713233] ---[ end trace 0000000000000000 ]---
    [    1.713369] RIP: 0010:try_to_unlazy+0xbc/0xe0
    [    1.713506] Code: ff 84 c0 75 b8 81 63 38 ff fe ff ff 45 31 e4 48 c7 43 40 00 00 00 00 e8 12 c1 d0 ff 44 89 e0 5b 41 5c 41 5d 5d c3 cc cc cc cc <0f> 0b 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 eb c8 0f 0b 66
    [    1.713996] RSP: 0018:ffffcfe44b253bb0 EFLAGS: 00010246
    [    1.714132] RAX: 0000000000000001 RBX: ffffcfe44b253c30 RCX: 0000000000000000
    [    1.714341] RDX: 0000000000000000 RSI: 00000000000002ae RDI: ffffcfe44b253c30
    [    1.714543] RBP: ffffcfe44b253bc8 R08: 0000000000000064 R09: ffffffffffffffcf
    [    1.714742] R10: 0000000000000011 R11: ffff8d984cc84c00 R12: ffff8d984dcd1800
    [    1.715007] R13: ffff8d984dcd1800 R14: 0000000000000000 R15: ffffcfe44b253d78
    [    1.715255] FS:  000055558c5043c0(0000) GS:ffff8d997c287000(0000) knlGS:0000000000000000
    [    1.715470] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [    1.715647] CR2: 000055558c534000 CR3: 000000010eaa3006 CR4: 0000000000b70ef0
    [    1.715854] Kernel panic - not syncing: Fatal exception
    [    1.716285] Kernel Offset: 0x34000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
    
  5. chessturo commented on Aug 17, 2026

    @chessturo
    Contributor

    Feng Wang (@chemwolf6922) yeah I agree this looks like a dup of #41191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kernelWSL kernelwsl2Issue/feature applies to WSL 2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions