[ Ubutnu 18.04 for Windows Subsystem for linux ] How to upgrade it and create a new appx file from the existing roofs

I am using Ubuntu for Windows Subsystem for linux with release CanonicalGroupLimited.Ubuntu18.04onWindows_1804 .

This release does not contain of course all the packages and what I am trying to do is install some packages I need, then with the new roofs create a new install.tar.gz and compress everything into a new appx file that will be then used to install Ubuntu for WLS on any windows 10 PC.

This goal here is reducing the time spent on upgrading every time the basic release and centralize the upgrade/maintenance of the system .

I have been successful at installing Ubuntu for WSL as a root user ( using the command ubuntu1804.exe install --root ) , upgrading and installing the missing packages like openJDK, curl etc … . Then I compressed the rootfs into an install.tar.gz and here comes my issue .

When I try to reinstall it with the new filesystem by running the ubuntu1804.exe, the shell prompt stuck at the step of creating a new UNIX username . No matter how many times I enter a username, it prompts the same thing again and again as you can see in the screen shot .

And when I do the install with the --root option to prevent it from opening the shell and asking for username, a strange thing happens.

Evey time I open bash.exe or ubuntu1804.exe the windows closes immediately !

I am looking for ideas/suggestion on how to make this happens and solve this issue .

My system’s settings :

  1. Windows 10 1803
  2. OS version 17134.472 .

This site is for the co-ordination of the Ubuntu project(s), and not support.

For Ubuntu Support options, please have a look at https://community.ubuntu.com/t/finding-help/712