Can I upgrade my existing Ubuntu installation in WSL from 16.04 to 18.04?Is there a way of installing Windows...

What typically incentivizes a professor to change jobs to a lower ranking university?

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

What does it mean to describe someone as a butt steak?

What would happen to a modern skyscraper if it rains micro blackholes?

Why can't I see bouncing of a switch on an oscilloscope?

Watching something be written to a file live with tail

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Replacing matching entries in one column of a file by another column from a different file

How old can references or sources in a thesis be?

How to determine what difficulty is right for the game?

Modeling an IP Address

Why is Minecraft giving an OpenGL error?

Do infinite dimensional systems make sense?

Important Resources for Dark Age Civilizations?

Character reincarnated...as a snail

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Which country benefited the most from UN Security Council vetoes?

Languages that we cannot (dis)prove to be Context-Free

How do I deal with an unproductive colleague in a small company?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Theorems that impeded progress

How much of data wrangling is a data scientist's job?

Do I have a twin with permutated remainders?



Can I upgrade my existing Ubuntu installation in WSL from 16.04 to 18.04?


Is there a way of installing Windows Subsystem for Linux on Win10 (v1709) without using the Store?Can you install any other distros in Win10's “Windows Subsystem for Linux”?Get a Linux Distro for WSL on Windows 1703Upgrade of Linux Subsystem for Windows 10 (WSL) to Ubuntu 16.04 not workingsftp from Windows-10-v-1803 into WSL Ubuntu-18.04 ssh-server… won't connectUbuntu 18.04 LTS installed in VirtualBox hang at boot up after system updateHot CPU in ubuntu 18.04Deleting WSL after installing Ubuntu from Windows storewindows 10 WSL ubuntu unable to ping anythingPass command to WSL Ubuntu 16.04 upon opening/booting WSL ubuntuWhy does nextcloud not work after dist upgrade to Ubuntu 18.04?Computer Software Ubuntu 18.04Black screen after upgrading from Ubuntu 16.04 to Ubuntu 18.04






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







33















I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun.



Can I upgrade it to 18.04?



If so, how? If not, when?










share|improve this question

























  • Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

    – sba
    Apr 27 '18 at 8:13











  • @Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

    – iBug
    Apr 27 '18 at 16:06











  • Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

    – Biswapriyo
    May 10 '18 at 18:35


















33















I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun.



Can I upgrade it to 18.04?



If so, how? If not, when?










share|improve this question

























  • Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

    – sba
    Apr 27 '18 at 8:13











  • @Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

    – iBug
    Apr 27 '18 at 16:06











  • Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

    – Biswapriyo
    May 10 '18 at 18:35














33












33








33


15






I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun.



Can I upgrade it to 18.04?



If so, how? If not, when?










share|improve this question
















I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun.



Can I upgrade it to 18.04?



If so, how? If not, when?







windows-subsystem-for-linux ubuntu-18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 '18 at 0:46







iBug

















asked Apr 27 '18 at 5:10









iBugiBug

2,69641940




2,69641940













  • Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

    – sba
    Apr 27 '18 at 8:13











  • @Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

    – iBug
    Apr 27 '18 at 16:06











  • Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

    – Biswapriyo
    May 10 '18 at 18:35



















  • Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

    – sba
    Apr 27 '18 at 8:13











  • @Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

    – iBug
    Apr 27 '18 at 16:06











  • Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

    – Biswapriyo
    May 10 '18 at 18:35

















Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

– sba
Apr 27 '18 at 8:13





Here one can read "We will be looking at 18.04 support but do not have an official timeline yet."

– sba
Apr 27 '18 at 8:13













@Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

– iBug
Apr 27 '18 at 16:06





@Biswapriyo Not sure if I did it appropriately, but sudo do-release-upgrade -d then force an apt upgrade with force changed sources (xenial→bionic) worked well for me. Just make sure to remove things like linux-image and grub from WSL.

– iBug
Apr 27 '18 at 16:06













Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

– Biswapriyo
May 10 '18 at 18:35





Ubuntu 18.04 available in store: microsoft.com/en-us/store/p/ubuntu-1804/9n9tngvndl3q

– Biswapriyo
May 10 '18 at 18:35










4 Answers
4






active

oldest

votes


















30














I just forced an upgrade from 16.04 and it was successful, though the process was not all well.



sudo do-release-upgrade -d


First do the upgrade. As people have reported in comments, it's likely all that you need to do before 18.04 is all set up. In a few cases like mine, it will do most of the things while showing as "failed".



In case it shows as "failed", open /etc/apt/sources.list and replace all "xenial" with "bionic", and sudo apt update && sudo apt -y upgrade. Most people should have everything done at this point.



In some cases (but not all), APT and Debian Packager may fail during the process. According to this GitHub thread, you need to remove grub and kernels, if present:



sudo apt -f purge grub-pc
sudo apt -f purge linux-image*


Repeat the last command several times as dpkg will fail after removing every package. After all those Linux images are removed, you get a fully working Bionic Beaver in your WSL.





Read more: A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers






share|improve this answer





















  • 11





    FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

    – Paul
    May 2 '18 at 15:27











  • @Paul They were installed previously and were updated together.

    – iBug
    May 2 '18 at 15:45






  • 10





    Can confirm that just sudo do-release-upgrade -d works nicely now.

    – Ben
    May 11 '18 at 18:42



















9














Yes, you can!



There are now three varieties of Ubuntu available on the Window Store.



Screenshot from Windows Store showing the three varieties of Ubuntu available.




  • Ubuntu: This will always be the latest stable, LTS version.

  • Ubuntu 18.04 LTS: For developers who want version 18.04 specifically.

  • Ubuntu 16.04 LTS: For developers who want version 16.04 specifically.


If you installed the plain "Ubuntu" app (with no version number) before 18.04 was made available on the Windows Store, you may upgrade it with the following set of commands:



sudo apt update -y         # makes apt system up-to-date 
sudo apt dist-upgrade -y # upgrades Ubuntu 16.04 packages to latest

sudo do-release-upgrade # performs the upgrade to Ubuntu 18.04


Follow all prompts and heed all warnings you are presented with. They are usually due to customizations and third-party libraries or repositories you added yourself.



Official source: https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/






share|improve this answer





















  • 2





    Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

    – Koying
    Dec 1 '18 at 21:08











  • Thanks @Koying, I updated my answer.

    – Jeff Guillaume
    21 hours ago



















8














There is official Ubuntu18.04 in the windows store now, as well as Ubuntu16.04.



Though I haven't found any official information what is the difference between these two and the Ubuntu.



Yes, there are three different Ubuntu in windows store at the moment.






share|improve this answer



















  • 3





    The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

    – DavidB
    Jun 2 '18 at 23:11











  • Yes, later found out on some blog.

    – X.Arthur
    Jun 3 '18 at 21:34






  • 1





    I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

    – DavidB
    Jun 4 '18 at 12:23











  • @DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

    – X.Arthur
    Jun 4 '18 at 15:47











  • Are you sure about this? I upgraded and everything seems to be working smoothly.

    – DavidB
    Jun 4 '18 at 16:18



















3














Disclaimer: This following procedure requires a pre-installed GNU/Linux Distributions in WSL (like OP has Ubuntu 16.04 already installed). The provided links may not work in future. You may comment below if any. It requires little knowledge of GNU/Linux command line tools e.g. tar, UnsquashFS etc. Install these tools before following this procedure.




  • Installer Executable: You need an executable importing WslRegisterDistribution function which installs the distribution. There are two ways. You can compile your own installer from source code (link1) or extract the installer from Microsoft provided Appx package(link2).


  • Get Ubuntu 18.04: Download the Ubuntu 18.04 SquashFS file. Now run old Ubuntu with WSL in that download folder and login as root user. Run the following commands below (only with root user):



cp ./ubuntu-18.04-server-cloudimg-amd64.squashfs ~ 
cd ~
unsquashfs -d temp ubuntu-18.04-server-cloudimg-amd64.squashfs
cd temp
tar -czf ../Ubuntu.tar.gz --hard-dereference *
cd ..
mv Ubuntu.tar.gz /mnt/c


The cp command copies the SquashFS file in home directory (required). UnsquashFS extracts files in temp folder and tar compresses all the files in a .tar.gz format. Then mv command move that file in previous download folder. You may delete the temp folder with rm -rf ~/temp command.





  • Install: Place both the executable and tar.gz file in same folder where you want to install. You've to run a command (link1) or double click on the executable (link2) to install. It requires 15-30 seconds to install depending on you machine.






share|improve this answer



















  • 3





    There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

    – phk
    Apr 28 '18 at 20:40











  • Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

    – phk
    Apr 28 '18 at 20:42












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1317619%2fcan-i-upgrade-my-existing-ubuntu-installation-in-wsl-from-16-04-to-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes









30














I just forced an upgrade from 16.04 and it was successful, though the process was not all well.



sudo do-release-upgrade -d


First do the upgrade. As people have reported in comments, it's likely all that you need to do before 18.04 is all set up. In a few cases like mine, it will do most of the things while showing as "failed".



In case it shows as "failed", open /etc/apt/sources.list and replace all "xenial" with "bionic", and sudo apt update && sudo apt -y upgrade. Most people should have everything done at this point.



In some cases (but not all), APT and Debian Packager may fail during the process. According to this GitHub thread, you need to remove grub and kernels, if present:



sudo apt -f purge grub-pc
sudo apt -f purge linux-image*


Repeat the last command several times as dpkg will fail after removing every package. After all those Linux images are removed, you get a fully working Bionic Beaver in your WSL.





Read more: A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers






share|improve this answer





















  • 11





    FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

    – Paul
    May 2 '18 at 15:27











  • @Paul They were installed previously and were updated together.

    – iBug
    May 2 '18 at 15:45






  • 10





    Can confirm that just sudo do-release-upgrade -d works nicely now.

    – Ben
    May 11 '18 at 18:42
















30














I just forced an upgrade from 16.04 and it was successful, though the process was not all well.



sudo do-release-upgrade -d


First do the upgrade. As people have reported in comments, it's likely all that you need to do before 18.04 is all set up. In a few cases like mine, it will do most of the things while showing as "failed".



In case it shows as "failed", open /etc/apt/sources.list and replace all "xenial" with "bionic", and sudo apt update && sudo apt -y upgrade. Most people should have everything done at this point.



In some cases (but not all), APT and Debian Packager may fail during the process. According to this GitHub thread, you need to remove grub and kernels, if present:



sudo apt -f purge grub-pc
sudo apt -f purge linux-image*


Repeat the last command several times as dpkg will fail after removing every package. After all those Linux images are removed, you get a fully working Bionic Beaver in your WSL.





Read more: A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers






share|improve this answer





















  • 11





    FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

    – Paul
    May 2 '18 at 15:27











  • @Paul They were installed previously and were updated together.

    – iBug
    May 2 '18 at 15:45






  • 10





    Can confirm that just sudo do-release-upgrade -d works nicely now.

    – Ben
    May 11 '18 at 18:42














30












30








30







I just forced an upgrade from 16.04 and it was successful, though the process was not all well.



sudo do-release-upgrade -d


First do the upgrade. As people have reported in comments, it's likely all that you need to do before 18.04 is all set up. In a few cases like mine, it will do most of the things while showing as "failed".



In case it shows as "failed", open /etc/apt/sources.list and replace all "xenial" with "bionic", and sudo apt update && sudo apt -y upgrade. Most people should have everything done at this point.



In some cases (but not all), APT and Debian Packager may fail during the process. According to this GitHub thread, you need to remove grub and kernels, if present:



sudo apt -f purge grub-pc
sudo apt -f purge linux-image*


Repeat the last command several times as dpkg will fail after removing every package. After all those Linux images are removed, you get a fully working Bionic Beaver in your WSL.





Read more: A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers






share|improve this answer















I just forced an upgrade from 16.04 and it was successful, though the process was not all well.



sudo do-release-upgrade -d


First do the upgrade. As people have reported in comments, it's likely all that you need to do before 18.04 is all set up. In a few cases like mine, it will do most of the things while showing as "failed".



In case it shows as "failed", open /etc/apt/sources.list and replace all "xenial" with "bionic", and sudo apt update && sudo apt -y upgrade. Most people should have everything done at this point.



In some cases (but not all), APT and Debian Packager may fail during the process. According to this GitHub thread, you need to remove grub and kernels, if present:



sudo apt -f purge grub-pc
sudo apt -f purge linux-image*


Repeat the last command several times as dpkg will fail after removing every package. After all those Linux images are removed, you get a fully working Bionic Beaver in your WSL.





Read more: A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 30 '18 at 12:24

























answered Apr 28 '18 at 9:21









iBugiBug

2,69641940




2,69641940








  • 11





    FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

    – Paul
    May 2 '18 at 15:27











  • @Paul They were installed previously and were updated together.

    – iBug
    May 2 '18 at 15:45






  • 10





    Can confirm that just sudo do-release-upgrade -d works nicely now.

    – Ben
    May 11 '18 at 18:42














  • 11





    FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

    – Paul
    May 2 '18 at 15:27











  • @Paul They were installed previously and were updated together.

    – iBug
    May 2 '18 at 15:45






  • 10





    Can confirm that just sudo do-release-upgrade -d works nicely now.

    – Ben
    May 11 '18 at 18:42








11




11





FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

– Paul
May 2 '18 at 15:27





FWIW, perhaps the issues you encountered were fixed in the Windows 10 April 2018 update, but I did sudo do-release-upgrade -d and it upgraded to 18.04 with no errors, it correctly set my sources.list, and no grub-pc or linux-image* packages were installed. It worked perfectly fine!

– Paul
May 2 '18 at 15:27













@Paul They were installed previously and were updated together.

– iBug
May 2 '18 at 15:45





@Paul They were installed previously and were updated together.

– iBug
May 2 '18 at 15:45




10




10





Can confirm that just sudo do-release-upgrade -d works nicely now.

– Ben
May 11 '18 at 18:42





Can confirm that just sudo do-release-upgrade -d works nicely now.

– Ben
May 11 '18 at 18:42













9














Yes, you can!



There are now three varieties of Ubuntu available on the Window Store.



Screenshot from Windows Store showing the three varieties of Ubuntu available.




  • Ubuntu: This will always be the latest stable, LTS version.

  • Ubuntu 18.04 LTS: For developers who want version 18.04 specifically.

  • Ubuntu 16.04 LTS: For developers who want version 16.04 specifically.


If you installed the plain "Ubuntu" app (with no version number) before 18.04 was made available on the Windows Store, you may upgrade it with the following set of commands:



sudo apt update -y         # makes apt system up-to-date 
sudo apt dist-upgrade -y # upgrades Ubuntu 16.04 packages to latest

sudo do-release-upgrade # performs the upgrade to Ubuntu 18.04


Follow all prompts and heed all warnings you are presented with. They are usually due to customizations and third-party libraries or repositories you added yourself.



Official source: https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/






share|improve this answer





















  • 2





    Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

    – Koying
    Dec 1 '18 at 21:08











  • Thanks @Koying, I updated my answer.

    – Jeff Guillaume
    21 hours ago
















9














Yes, you can!



There are now three varieties of Ubuntu available on the Window Store.



Screenshot from Windows Store showing the three varieties of Ubuntu available.




  • Ubuntu: This will always be the latest stable, LTS version.

  • Ubuntu 18.04 LTS: For developers who want version 18.04 specifically.

  • Ubuntu 16.04 LTS: For developers who want version 16.04 specifically.


If you installed the plain "Ubuntu" app (with no version number) before 18.04 was made available on the Windows Store, you may upgrade it with the following set of commands:



sudo apt update -y         # makes apt system up-to-date 
sudo apt dist-upgrade -y # upgrades Ubuntu 16.04 packages to latest

sudo do-release-upgrade # performs the upgrade to Ubuntu 18.04


Follow all prompts and heed all warnings you are presented with. They are usually due to customizations and third-party libraries or repositories you added yourself.



Official source: https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/






share|improve this answer





















  • 2





    Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

    – Koying
    Dec 1 '18 at 21:08











  • Thanks @Koying, I updated my answer.

    – Jeff Guillaume
    21 hours ago














9












9








9







Yes, you can!



There are now three varieties of Ubuntu available on the Window Store.



Screenshot from Windows Store showing the three varieties of Ubuntu available.




  • Ubuntu: This will always be the latest stable, LTS version.

  • Ubuntu 18.04 LTS: For developers who want version 18.04 specifically.

  • Ubuntu 16.04 LTS: For developers who want version 16.04 specifically.


If you installed the plain "Ubuntu" app (with no version number) before 18.04 was made available on the Windows Store, you may upgrade it with the following set of commands:



sudo apt update -y         # makes apt system up-to-date 
sudo apt dist-upgrade -y # upgrades Ubuntu 16.04 packages to latest

sudo do-release-upgrade # performs the upgrade to Ubuntu 18.04


Follow all prompts and heed all warnings you are presented with. They are usually due to customizations and third-party libraries or repositories you added yourself.



Official source: https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/






share|improve this answer















Yes, you can!



There are now three varieties of Ubuntu available on the Window Store.



Screenshot from Windows Store showing the three varieties of Ubuntu available.




  • Ubuntu: This will always be the latest stable, LTS version.

  • Ubuntu 18.04 LTS: For developers who want version 18.04 specifically.

  • Ubuntu 16.04 LTS: For developers who want version 16.04 specifically.


If you installed the plain "Ubuntu" app (with no version number) before 18.04 was made available on the Windows Store, you may upgrade it with the following set of commands:



sudo apt update -y         # makes apt system up-to-date 
sudo apt dist-upgrade -y # upgrades Ubuntu 16.04 packages to latest

sudo do-release-upgrade # performs the upgrade to Ubuntu 18.04


Follow all prompts and heed all warnings you are presented with. They are usually due to customizations and third-party libraries or repositories you added yourself.



Official source: https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/







share|improve this answer














share|improve this answer



share|improve this answer








edited 21 hours ago

























answered Oct 30 '18 at 10:50









Jeff GuillaumeJeff Guillaume

19016




19016








  • 2





    Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

    – Koying
    Dec 1 '18 at 21:08











  • Thanks @Koying, I updated my answer.

    – Jeff Guillaume
    21 hours ago














  • 2





    Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

    – Koying
    Dec 1 '18 at 21:08











  • Thanks @Koying, I updated my answer.

    – Jeff Guillaume
    21 hours ago








2




2





Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

– Koying
Dec 1 '18 at 21:08





Should be sudo apt dist-upgrade, really, or held upgrades will prevent the release upgrade

– Koying
Dec 1 '18 at 21:08













Thanks @Koying, I updated my answer.

– Jeff Guillaume
21 hours ago





Thanks @Koying, I updated my answer.

– Jeff Guillaume
21 hours ago











8














There is official Ubuntu18.04 in the windows store now, as well as Ubuntu16.04.



Though I haven't found any official information what is the difference between these two and the Ubuntu.



Yes, there are three different Ubuntu in windows store at the moment.






share|improve this answer



















  • 3





    The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

    – DavidB
    Jun 2 '18 at 23:11











  • Yes, later found out on some blog.

    – X.Arthur
    Jun 3 '18 at 21:34






  • 1





    I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

    – DavidB
    Jun 4 '18 at 12:23











  • @DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

    – X.Arthur
    Jun 4 '18 at 15:47











  • Are you sure about this? I upgraded and everything seems to be working smoothly.

    – DavidB
    Jun 4 '18 at 16:18
















8














There is official Ubuntu18.04 in the windows store now, as well as Ubuntu16.04.



Though I haven't found any official information what is the difference between these two and the Ubuntu.



Yes, there are three different Ubuntu in windows store at the moment.






share|improve this answer



















  • 3





    The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

    – DavidB
    Jun 2 '18 at 23:11











  • Yes, later found out on some blog.

    – X.Arthur
    Jun 3 '18 at 21:34






  • 1





    I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

    – DavidB
    Jun 4 '18 at 12:23











  • @DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

    – X.Arthur
    Jun 4 '18 at 15:47











  • Are you sure about this? I upgraded and everything seems to be working smoothly.

    – DavidB
    Jun 4 '18 at 16:18














8












8








8







There is official Ubuntu18.04 in the windows store now, as well as Ubuntu16.04.



Though I haven't found any official information what is the difference between these two and the Ubuntu.



Yes, there are three different Ubuntu in windows store at the moment.






share|improve this answer













There is official Ubuntu18.04 in the windows store now, as well as Ubuntu16.04.



Though I haven't found any official information what is the difference between these two and the Ubuntu.



Yes, there are three different Ubuntu in windows store at the moment.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 30 '18 at 17:05









X.ArthurX.Arthur

894




894








  • 3





    The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

    – DavidB
    Jun 2 '18 at 23:11











  • Yes, later found out on some blog.

    – X.Arthur
    Jun 3 '18 at 21:34






  • 1





    I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

    – DavidB
    Jun 4 '18 at 12:23











  • @DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

    – X.Arthur
    Jun 4 '18 at 15:47











  • Are you sure about this? I upgraded and everything seems to be working smoothly.

    – DavidB
    Jun 4 '18 at 16:18














  • 3





    The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

    – DavidB
    Jun 2 '18 at 23:11











  • Yes, later found out on some blog.

    – X.Arthur
    Jun 3 '18 at 21:34






  • 1





    I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

    – DavidB
    Jun 4 '18 at 12:23











  • @DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

    – X.Arthur
    Jun 4 '18 at 15:47











  • Are you sure about this? I upgraded and everything seems to be working smoothly.

    – DavidB
    Jun 4 '18 at 16:18








3




3





The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

– DavidB
Jun 2 '18 at 23:11





The two installations that have a version number on the end are intended for people that want to use a specific version and stick with it. The version that is just labeled "Ubuntu" is for those who want to always run the latest release.

– DavidB
Jun 2 '18 at 23:11













Yes, later found out on some blog.

– X.Arthur
Jun 3 '18 at 21:34





Yes, later found out on some blog.

– X.Arthur
Jun 3 '18 at 21:34




1




1





I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

– DavidB
Jun 4 '18 at 12:23





I was under the impression that if you were using the "Ubuntu" one, it would update to the latest version via the app store, but that is apparently not the case.

– DavidB
Jun 4 '18 at 12:23













@DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

– X.Arthur
Jun 4 '18 at 15:47





@DavidB It should be updated when MS has tested its stability. It seems the current 18.04 has changed a lot of things, and some need new implementation on WSL. Hopefully, the next windows release will include this.

– X.Arthur
Jun 4 '18 at 15:47













Are you sure about this? I upgraded and everything seems to be working smoothly.

– DavidB
Jun 4 '18 at 16:18





Are you sure about this? I upgraded and everything seems to be working smoothly.

– DavidB
Jun 4 '18 at 16:18











3














Disclaimer: This following procedure requires a pre-installed GNU/Linux Distributions in WSL (like OP has Ubuntu 16.04 already installed). The provided links may not work in future. You may comment below if any. It requires little knowledge of GNU/Linux command line tools e.g. tar, UnsquashFS etc. Install these tools before following this procedure.




  • Installer Executable: You need an executable importing WslRegisterDistribution function which installs the distribution. There are two ways. You can compile your own installer from source code (link1) or extract the installer from Microsoft provided Appx package(link2).


  • Get Ubuntu 18.04: Download the Ubuntu 18.04 SquashFS file. Now run old Ubuntu with WSL in that download folder and login as root user. Run the following commands below (only with root user):



cp ./ubuntu-18.04-server-cloudimg-amd64.squashfs ~ 
cd ~
unsquashfs -d temp ubuntu-18.04-server-cloudimg-amd64.squashfs
cd temp
tar -czf ../Ubuntu.tar.gz --hard-dereference *
cd ..
mv Ubuntu.tar.gz /mnt/c


The cp command copies the SquashFS file in home directory (required). UnsquashFS extracts files in temp folder and tar compresses all the files in a .tar.gz format. Then mv command move that file in previous download folder. You may delete the temp folder with rm -rf ~/temp command.





  • Install: Place both the executable and tar.gz file in same folder where you want to install. You've to run a command (link1) or double click on the executable (link2) to install. It requires 15-30 seconds to install depending on you machine.






share|improve this answer



















  • 3





    There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

    – phk
    Apr 28 '18 at 20:40











  • Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

    – phk
    Apr 28 '18 at 20:42
















3














Disclaimer: This following procedure requires a pre-installed GNU/Linux Distributions in WSL (like OP has Ubuntu 16.04 already installed). The provided links may not work in future. You may comment below if any. It requires little knowledge of GNU/Linux command line tools e.g. tar, UnsquashFS etc. Install these tools before following this procedure.




  • Installer Executable: You need an executable importing WslRegisterDistribution function which installs the distribution. There are two ways. You can compile your own installer from source code (link1) or extract the installer from Microsoft provided Appx package(link2).


  • Get Ubuntu 18.04: Download the Ubuntu 18.04 SquashFS file. Now run old Ubuntu with WSL in that download folder and login as root user. Run the following commands below (only with root user):



cp ./ubuntu-18.04-server-cloudimg-amd64.squashfs ~ 
cd ~
unsquashfs -d temp ubuntu-18.04-server-cloudimg-amd64.squashfs
cd temp
tar -czf ../Ubuntu.tar.gz --hard-dereference *
cd ..
mv Ubuntu.tar.gz /mnt/c


The cp command copies the SquashFS file in home directory (required). UnsquashFS extracts files in temp folder and tar compresses all the files in a .tar.gz format. Then mv command move that file in previous download folder. You may delete the temp folder with rm -rf ~/temp command.





  • Install: Place both the executable and tar.gz file in same folder where you want to install. You've to run a command (link1) or double click on the executable (link2) to install. It requires 15-30 seconds to install depending on you machine.






share|improve this answer



















  • 3





    There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

    – phk
    Apr 28 '18 at 20:40











  • Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

    – phk
    Apr 28 '18 at 20:42














3












3








3







Disclaimer: This following procedure requires a pre-installed GNU/Linux Distributions in WSL (like OP has Ubuntu 16.04 already installed). The provided links may not work in future. You may comment below if any. It requires little knowledge of GNU/Linux command line tools e.g. tar, UnsquashFS etc. Install these tools before following this procedure.




  • Installer Executable: You need an executable importing WslRegisterDistribution function which installs the distribution. There are two ways. You can compile your own installer from source code (link1) or extract the installer from Microsoft provided Appx package(link2).


  • Get Ubuntu 18.04: Download the Ubuntu 18.04 SquashFS file. Now run old Ubuntu with WSL in that download folder and login as root user. Run the following commands below (only with root user):



cp ./ubuntu-18.04-server-cloudimg-amd64.squashfs ~ 
cd ~
unsquashfs -d temp ubuntu-18.04-server-cloudimg-amd64.squashfs
cd temp
tar -czf ../Ubuntu.tar.gz --hard-dereference *
cd ..
mv Ubuntu.tar.gz /mnt/c


The cp command copies the SquashFS file in home directory (required). UnsquashFS extracts files in temp folder and tar compresses all the files in a .tar.gz format. Then mv command move that file in previous download folder. You may delete the temp folder with rm -rf ~/temp command.





  • Install: Place both the executable and tar.gz file in same folder where you want to install. You've to run a command (link1) or double click on the executable (link2) to install. It requires 15-30 seconds to install depending on you machine.






share|improve this answer













Disclaimer: This following procedure requires a pre-installed GNU/Linux Distributions in WSL (like OP has Ubuntu 16.04 already installed). The provided links may not work in future. You may comment below if any. It requires little knowledge of GNU/Linux command line tools e.g. tar, UnsquashFS etc. Install these tools before following this procedure.




  • Installer Executable: You need an executable importing WslRegisterDistribution function which installs the distribution. There are two ways. You can compile your own installer from source code (link1) or extract the installer from Microsoft provided Appx package(link2).


  • Get Ubuntu 18.04: Download the Ubuntu 18.04 SquashFS file. Now run old Ubuntu with WSL in that download folder and login as root user. Run the following commands below (only with root user):



cp ./ubuntu-18.04-server-cloudimg-amd64.squashfs ~ 
cd ~
unsquashfs -d temp ubuntu-18.04-server-cloudimg-amd64.squashfs
cd temp
tar -czf ../Ubuntu.tar.gz --hard-dereference *
cd ..
mv Ubuntu.tar.gz /mnt/c


The cp command copies the SquashFS file in home directory (required). UnsquashFS extracts files in temp folder and tar compresses all the files in a .tar.gz format. Then mv command move that file in previous download folder. You may delete the temp folder with rm -rf ~/temp command.





  • Install: Place both the executable and tar.gz file in same folder where you want to install. You've to run a command (link1) or double click on the executable (link2) to install. It requires 15-30 seconds to install depending on you machine.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 27 '18 at 16:41









BiswapriyoBiswapriyo

3,43141444




3,43141444








  • 3





    There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

    – phk
    Apr 28 '18 at 20:40











  • Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

    – phk
    Apr 28 '18 at 20:42














  • 3





    There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

    – phk
    Apr 28 '18 at 20:40











  • Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

    – phk
    Apr 28 '18 at 20:42








3




3





There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

– phk
Apr 28 '18 at 20:40





There also seem to be tools like github.com/Biswa96/WSLInstall and github.com/DDoSolitary/LxRunOffline which looks like could be used for the install part (haven't tested it myself though).

– phk
Apr 28 '18 at 20:40













Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

– phk
Apr 28 '18 at 20:42





Ahaha, the first github link from me like actually points to your repository, so nevermind. Cheers!

– phk
Apr 28 '18 at 20:42


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1317619%2fcan-i-upgrade-my-existing-ubuntu-installation-in-wsl-from-16-04-to-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...