Closed HFR1994 closed 2 years ago
Yeah, I have the exact same issue on my system.
Running on a fresh and updated installation of Windows 11.
Hello,
Could you check the output of this command? wslvar 'ProgramFiles(x86)'
maybe the WSL Utilities installation failed.
The output of wslvar 'ProgramFiles(x86)'
is the following:
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:159
+ ... Text.Encoding]::GetEncoding(437); Write-Output $Env:ProgramFiles(x86)
+ ~~~
+ CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
And wslvar -v
?
wslu v3.2.2-1; wslvar v03
The latest version is 3.2.4 maybe you can try upgrading it.
Just decided to do another apt update && apt full-upgrade -y
and it did resolve itself with an update.
It seems as a fresh WSL instance running ubuntu probably doesn't have up to date packages for the latest version of wslu
to be installed with this script. It might be an idea to force an upgrade or add it to documentation that it is advised to make sure the packages in the WSL instance are up to date?
It should be common sense and its kind of foolish for me not to have thought of that earlier but still đ
Thanks for the report. I'll try to get the script updated shortly to force an apt full-upgrade
as part of the installation.
I just did a fresh install of WSL2 with Ubuntu
I also installed Powershell 7 and run the following command
No error during installation but as soon I launch the Ubuntu terminal I get
Any Ideas? Here are my specs