WSL: Difference between revisions
Jump to navigation
Jump to search
Line 44: | Line 44: | ||
$ wslpath -w '/' | $ wslpath -w '/' | ||
\\wsl.localhost\Ubuntu\ | \\wsl.localhost\Ubuntu\ | ||
</pre> | |||
== Issues == | |||
=== Update fails with Forbidden (403) === | |||
<pre> | |||
C:\>wsl --update | |||
Checking for updates. | |||
Forbidden (403). | |||
Error code: Wsl/UpdatePackage/0x80190193 | |||
</pre> | |||
Searches online indiate Defender (or other virus scanner may be to blame). | |||
One suggests using --web-download: | |||
wsl --update --web-download | |||
ref: [https://github.com/microsoft/WSL/issues/9039] | |||
<pre> | |||
C:\>wsl --update | |||
Checking for updates. | |||
The most recent version of Windows Subsystem for Linux is already installed. | |||
</pre> | </pre> | ||
== keywords == | == keywords == |
Revision as of 06:54, 15 October 2024
Windows Subsystem for Linux
NOTE: THERE IS TOO MUCH OVERHEAD FOR WSL, DON'T ENABLE!
Enable
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Disable
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Install Ubuntu
wsl --install -d ubuntu
ref [1]
Convert WSL and Windows Paths
$ wslpath Usage: -a force result to absolute path format -u translate from a Windows path to a WSL path (default) -w translate from a WSL path to a Windows path -m translate from a WSL path to a Windows path, with '/' instead of '\' EX: wslpath 'c:\users'
Windows path from WSL:
$ wslpath 'c:\users' /mnt/c/users
WSL path from Windows:
$ wslpath -w '/' \\wsl.localhost\Ubuntu\
Issues
Update fails with Forbidden (403)
C:\>wsl --update Checking for updates. Forbidden (403). Error code: Wsl/UpdatePackage/0x80190193
Searches online indiate Defender (or other virus scanner may be to blame).
One suggests using --web-download:
wsl --update --web-download
ref: [2]
C:\>wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed.