Install WSL 2. Ensure you're running Windows 10 version 2004 or a later version (Build 19041 and higher), or Windows 11. To install WSL, open a PowerShell or Windows command prompt in administrator mode, and run
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
PowerShellCopy wsl--install This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux. (This default distribution can be changed). If you're running an older build, or just prefer not to use the install command and would like step-by-step direct...
Alternatively, you can run one of these commands from PowerShell, or from the Command Prompt session in the Windows host:1 2 3 4 5 PS> bash -c 'hostname -I' 192.168.66.217 PS> wsl -- hostname -I 192.168.66.217Now that we know the IP address, we can connect to PostgreSQL on ...
There is a single command that will install both WSL and Ubuntu at the same time. When opening PowerShell for the first time, simply modify the initial instruction to: wsl --install -d ubuntu This will install both WSL and Ubuntu! Don’t forget to restart your machine before continuing. ...
To install additional Linux distributions after the initial install, you may also use the command: wsl --install -d <Distribution Name>. Tip If you want to install additional distributions from inside a Linux/Bash command line (rather than from PowerShell or Command Prompt), you must use .ex...
Then I installed Ubuntu from the Windows Store which gave me a WSLv1 distro working normally. I followed by running the command in powershell:Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatformand finallybefore rebootingI ranwsl --set-version Ubuntu 2which converted my disto ...
WSL version: 2.1.5.0 Kernel version: 5.15.146.1-2 WSLg version: 1.0.60 MSRDC version: 1.2.5105 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.26085.1 I've been getting same issue after the update and was able to...
To use Linux on your Windows PC first you need to install WSL 2. Here's how to do just that on both Windows 10 and 11 in minutes.
Once all of the above is complete you’ll want to restart WSL by closing your Microsoft Terminal and running wsl.exe --shutdown from PowerShell, then open up WSL. Step 2: Install Docker / Docker Compose v2 in WSL 2 Here’s the condensed version for Ubuntu and Debian based distros: ...