-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
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
- 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.
Reactions are currently unavailable