On my work are not allowed to install apps from the Microsoft Store. Yes, this is a bank, that not supported Windows 10 (it's hell).
Is it possible to install Ubuntu in WSL without downloading it from the app store?
Or is it possible to download Ubuntu app without Microsoft Store and then install it?
Yes, it is possible to download the app without the Store. Some available distributions are listed in the Manual Installation section of the MS guide ( https://docs.microsoft.com/en-us/windows/wsl/install-manual )
The actual manual installation instructions are hidden in the Server Install section of the manual ( https://docs.microsoft.com/en-us/windows/wsl/install-on-server ), but my understanding is that you can just run the .appx file you downloaded and it should work anyway.
Whether it's wise to install WSL/Ubuntu on a work computer that you don't control is another question, but one which only you can answer.
I had the same problem, could do it like this (from PowerShell):
# go into some folder into which you want the file to be downloaded
cd <somefolder>
# download Ubuntu 20.04
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
# install downloaded *.appx file
Add-AppxPackage .\Ubuntu.appx
Afterwards I did Windows + S and typed "Ubuntu" to show the installed app, then executed it to finish setup (new user name + password must be given).
I checked the success doing: wsl --list --verbose
and received this:
NAME STATE VERSION
Ubuntu-20.04 Running 1
So finally, I needed to convert my Ubuntu to WSL2 like this:
wsl --set-version Ubuntu-20.04 2
Voila!
Yes, It is possible to install Ubuntu without opening the store.
Open settings in windows and enable developer mode.
Once the developer mode is enabled, Go to Windows search and Type Bash.
It will open Bash command prompt. Allow it to download Ubuntu automatically.
Cheers!!!
I created a powershell script to install wsl2 with optional X-Windows and Pulse Audio support. I also captured my experience with installing wsl without Store access in the Readme.md.
For the detail see here: https://github.com/andras-varro/wsl2i
I believe these are the most important points:
Check if your installation supports WSL2: Windows logo key + R, type winver [enter]. You should have Version 1903 or higher, with Build 18362 or higher
Enable WSL2
Install a Linux distro
Test your WSL2
You can use winget (Windows Package Manager):
winget install -e --id Canonical.Ubuntu
To get another version than the "latest", search for them via:
winget search -s winget Ubuntu
If you omit the -s winget
option, the versions from other sources like the Microsoft store will be displayed too.
Iin an administrator PowerShell or Windows Command Prompt and then restarting your machine:
wsl --install --distribution Ubuntu
You can get distributions list by:
wsl --list --online
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.