1
  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

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

1 Answer 1

4

Open an admin powershell terminal

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

Reboot

Download a linux distrubution: https://learn.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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.