0
votes
  1. I have enabled "Windows Subsystem for Linux"
  2. I have switched to "Developer mode" restarted my PC.
  3. Downloaded a Linux system (Ubuntu) I PowerShell -

    Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804-lte -OutFile Ubuntu.appx -UseBasicParsing

    Add-AppxPackage .\Ubuntu.appx

  4. Run Linux inside Windows 10 - DOESN'T WORK

When I run bash command from my console I get the following: enter image description here

It looks like that the bash and ubuntu is installed but doesn't work

enter image description here

enter image description here

EDITED: I also get this error: enter image description here

1
What is the output from: wsl -l on a command prompt?Luuk
@Luuk - Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: aka.ms/wslstoreRoman
Go to that link (or start 'Microsoft Store'), and download/install Ubuntu...Luuk
Cannot use Microsoft Store - company restrictionRoman
Than you have to contact the person who is dealing with your 'company restriction' .... 😎Luuk

1 Answers

3
votes

Open an admin powershell terminal

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Reboot

Download a linux distrubution: https://docs.microsoft.com/en-us/windows/wsl/install-manual

In a powershell terminal

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing

Move to desired location on system c:/_distros/ then rename and extract the binaries via powershell

Rename-Item Ubuntu.appx Ubuntu.zip
Expand-Archive Ubuntu.zip Ubuntu

Add your distro path to the Windows environment PATH (C:\Distros\Ubuntu in this example), e.g. using Powershell:

$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + "C:\_distros\Ubuntu", "User")

Run ubuntu.exe to install