4

I am currently running 16.04 version of Ubuntu bash on Windows 10 Pro (v1803) using WSL. But, I couldn't install the newly released 18.04 Ubuntu on my machine from the windows store. Need some help.

I tried to install the 18.04 version from Windows Store. The store app just refreshes. Nothing else happen.

Tried removing v16, turned off WSL feature and started all over again. Still the same.

Tried the method from this link from howtogeek. It installed only 16.04 version. Not the latest 18.04.

Resetting windows store didn't work too.

Viknesh
  • 59

3 Answers3

5

Wow, it worked for me - https://github.com/Microsoft/WSL/issues/2874

Just log out and log in again to MS Store account!

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332
0

Ubuntu 18.04 on Windows allows one to use Ubuntu Terminal and run Ubuntu command line utilities including bash, ssh, git, apt and many more. Ubuntu 18.04 WSL is published by Canonical. WSL2 which features a true Linux kernel can be installed in Windows 10 version 2004 and later.

Please note that Windows 10 S does not support running this app. Windows 10 in S Mode can’t use command-line shells like PowerShell, Command Prompt, or Bash which are commonly used in WSL. Various other developer tools are also off limits.*


Install the Windows Subsystem for Linux

  1. To use this feature, one first needs to use Turn Windows features on or off and select Windows Subsystem for Linux, click OK, reboot, and use this app. This step can also be performed using Administrator PowerShell prompt:

     Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux"
    
  2. Restart your computer when prompted.

Install Ubuntu 18.04

  1. Check that Windows 10 build 16215 or later is installed.

  2. Open the Microsoft Store and choose Ubuntu.

  3. From the Ubuntu page, click the blue Get button.


To launch Ubuntu, type ubuntu1804 on the command-line prompt (cmd.exe), or click on the Ubuntu tile in the Start Menu.

karel
  • 122,292
  • 133
  • 301
  • 332
0

I solved it without a Microsoft Store Account.

I made this batch file which downloads the latest WSL Ubuntu version & extracts the Appx contents with 7-zip, then directly starts the ubuntu.exe to install:

cd /d "D:\Work\Virtual Machines"
rd /s /q Wsl
md Wsl
cd Wsl
wget -O Ubuntu.appx https://aka.ms/wslubuntu
7z e Ubuntu.appx -oUbuntu
cd Ubuntu
7z e Ubuntu*x64.appx -oUbuntu
cd Ubuntu
wsl --unregister Ubuntu
ubuntu.exe

The installation took a long time and there is unfortunately no progress bar, but you can check the last extracted folder (./Ubuntu/Ubuntu) size to be about 2GB when it is near finish.

==========================WARNING!==========================

This line will delete the Ubuntu distro and all files in it:

wsl --unregister Ubuntu

==========================WARNING!==========================