Skip to content

Update wslu package to 3.2.3-ubuntu or later for WSL interoperability to work with new kernel #14287

@pacorreia

Description

@pacorreia

Windows Version

Microsoft Windows [Version 10.0.26200.7623]

WSL Version

2.6.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. wslview https://example.com

Expected Behavior

Opening browser in windows with specified page

Actual Behavior

grep: /proc/sys/fs/binfmt_misc/WSLInterop-late: No such file or directory
WSL Interopability is disabled. Please enable it before using WSL.
grep: /proc/sys/fs/binfmt_misc/WSLInterop-late: No such file or directory

Diagnostic Logs

From my debug session:

I had a wslu package with version 3.23-1 from ppa:wslutilities/wslu
The affected file is wslview

The buggy code was:

grep enabled /proc/sys/fs/binfmt_misc/WSLInterop-late >/dev/null || \
  (echo "WSL Interopability is disabled. Please enable it before using WSL."; exit 1)

Root cause:
/proc/sys/fs/binfmt_misc/WSLInterop-late doesn't exist on all WSL2 kernels; the correct path is WSLInterop

this was fixed with:

sudo add-apt-repository ppa:wslutilities/wslu -y && sudo apt update && sudo apt install --only-upgrade wslu -y

which installed 4.1.3 from the official ppa:wslutilities/wslu

I tried to downagrade to 3.2.3-1 but that version is no longer available, an the earliest is 3.23.3-oubuntu3 that has this already fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions