Open Radhwen-1919 opened 5 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
wsl --install
does not give a helpful error message (#7072), similarity score: 0.78Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Windows Version
19045.3930
WSL Version
2.0.14
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Ubuntu
Other Software
No response
Repro Steps
I want to deply WSL 2 to Intune but when testing on my local machine I can't install WSL with system context (C:\pstools\PsExec.exe /s cmd) .
the Script:
####### Install the latest version of Ubuntu ######
Write-Log -Message "Starting Install WSL..."
wsl --install
########## Update WSL to the latest version ##########
Write-Log -Message "Starting Update WSL to the latest version..."
wsl --update --web-download
########## Set default version 2 ##########
Write-Log -Message "Starting Set default version 2..."
wsl --set-default-version 2
########## Install Ubuntu distribution ##########
Write-Log -Message "Starting Install Ubuntu distribution..."
wsl --install -d Ubuntu --no-launch
command for testing: %WINDIR%\System32\windowsPowershell\v1.0\Powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File Install_WSL.ps1
Expected Behavior
It should install WSL and update to latest version and set version 2 and instal Ubuntu distribution.
Actual Behavior
It gives the output:
COMMENTAIRES : Starting Install WSL... o p y r i g h t ( c ) M i c r o s o f t C o r p o r a t i o n . T o u s d r o i t s r Ú s e r v Ú s . u t i l i s a t i o n á : W S L . e x e [ A r g u m e n t ] [ O p t i o n s . . . ] [ C o m m a n d L i n e ]
COMMENTAIRES : Starting Update WSL to the latest version... Ú l Ú c h a r g e m e n t e n c o u r s á : S o u s - s y s t Þ m e W i n d o w s p o u r L i n u x I n s t a l l a t i o n e n c o u r s á : S o u s - s y s t Þ m e W i n d o w s p o u r L i n u x P a r a m Þ t r e i n c o r r e c t .
COMMENTAIRES : Starting Set default version 2... P o u r p l u s d ↓ i n f o r m a t i o n s s u r l e s d i f f Ú r e n c e s d e c l Ú s a v e c W S L á 2 , v i s i t e z h t t p s : / / a k a . m s / w s l 2 L ↓ o p Ú r a t i o n a r Ú u s s i .
COMMENTAIRES : Starting Install Ubuntu distribution...
Diagnostic Logs
No response