Should I update Ubuntu on WSL?












8















I have Bash on Ubuntu on Windows.



Bash on Ubuntu on Windows



The output of lsb_release -a is the following.



No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty


Should I upgrade? Do I risk to break it?










share|improve this question





























    8















    I have Bash on Ubuntu on Windows.



    Bash on Ubuntu on Windows



    The output of lsb_release -a is the following.



    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.5 LTS
    Release: 14.04
    Codename: trusty


    Should I upgrade? Do I risk to break it?










    share|improve this question



























      8












      8








      8


      3






      I have Bash on Ubuntu on Windows.



      Bash on Ubuntu on Windows



      The output of lsb_release -a is the following.



      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 14.04.5 LTS
      Release: 14.04
      Codename: trusty


      Should I upgrade? Do I risk to break it?










      share|improve this question
















      I have Bash on Ubuntu on Windows.



      Bash on Ubuntu on Windows



      The output of lsb_release -a is the following.



      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 14.04.5 LTS
      Release: 14.04
      Codename: trusty


      Should I upgrade? Do I risk to break it?







      bash windows-subsystem-for-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 '18 at 19:21









      kiamlaluno

      18611




      18611










      asked Feb 21 '17 at 20:27









      KangaroooKangarooo

      2,87942134




      2,87942134






















          3 Answers
          3






          active

          oldest

          votes


















          9














          Yes its possible and there are two options:





          1. Use lxrunto install and uninstall bash:



            lxrun /uninstall
            lxrun /install



          2. Upgrade with do-release-upgrade:



            sudo do-release-upgrade



          Information:




          • The second method might work according to the link given below, but that article is 2016 so this method might work.



          • Here is clip from Microsoft




            Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty)
            in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe).
            Existing instances with Trusty will not be upgraded automatically.
            Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.





          Source:



          https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/



          https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936






          share|improve this answer


























          • I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

            – user643722
            Mar 14 '18 at 10:16











          • For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

            – amaslenn
            Sep 27 '18 at 12:41





















          0














          You should backup and reinstall WSL. This time you should install a newer version from the Windows Store choosing your favorite distro.






          share|improve this answer































            0














            sudo -S apt-mark hold procps strace sudo
            sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade


            These should update the Ubuntu on Windows to the latest version.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              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%2faskubuntu.com%2fquestions%2f885888%2fshould-i-update-ubuntu-on-wsl%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              9














              Yes its possible and there are two options:





              1. Use lxrunto install and uninstall bash:



                lxrun /uninstall
                lxrun /install



              2. Upgrade with do-release-upgrade:



                sudo do-release-upgrade



              Information:




              • The second method might work according to the link given below, but that article is 2016 so this method might work.



              • Here is clip from Microsoft




                Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty)
                in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe).
                Existing instances with Trusty will not be upgraded automatically.
                Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.





              Source:



              https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/



              https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936






              share|improve this answer


























              • I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

                – user643722
                Mar 14 '18 at 10:16











              • For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

                – amaslenn
                Sep 27 '18 at 12:41


















              9














              Yes its possible and there are two options:





              1. Use lxrunto install and uninstall bash:



                lxrun /uninstall
                lxrun /install



              2. Upgrade with do-release-upgrade:



                sudo do-release-upgrade



              Information:




              • The second method might work according to the link given below, but that article is 2016 so this method might work.



              • Here is clip from Microsoft




                Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty)
                in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe).
                Existing instances with Trusty will not be upgraded automatically.
                Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.





              Source:



              https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/



              https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936






              share|improve this answer


























              • I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

                – user643722
                Mar 14 '18 at 10:16











              • For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

                – amaslenn
                Sep 27 '18 at 12:41
















              9












              9








              9







              Yes its possible and there are two options:





              1. Use lxrunto install and uninstall bash:



                lxrun /uninstall
                lxrun /install



              2. Upgrade with do-release-upgrade:



                sudo do-release-upgrade



              Information:




              • The second method might work according to the link given below, but that article is 2016 so this method might work.



              • Here is clip from Microsoft




                Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty)
                in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe).
                Existing instances with Trusty will not be upgraded automatically.
                Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.





              Source:



              https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/



              https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936






              share|improve this answer















              Yes its possible and there are two options:





              1. Use lxrunto install and uninstall bash:



                lxrun /uninstall
                lxrun /install



              2. Upgrade with do-release-upgrade:



                sudo do-release-upgrade



              Information:




              • The second method might work according to the link given below, but that article is 2016 so this method might work.



              • Here is clip from Microsoft




                Note: WSL will install Ubuntu version 16.04 (Xenial) instead of Ubuntu 14.04 (Trusty)
                in an upcoming release. This change will apply to Insiders installing new instances (lxrun.exe /install or first run of bash.exe).
                Existing instances with Trusty will not be upgraded automatically.
                Users can upgrade their Trusty image to Xenial using the do-release-upgrade command.





              Source:



              https://www.howtogeek.com/278152/how-to-update-the-windows-bash-shell/



              https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14936







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 21 '17 at 21:04

























              answered Feb 21 '17 at 20:55









              George UdosenGeorge Udosen

              20.5k94467




              20.5k94467













              • I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

                – user643722
                Mar 14 '18 at 10:16











              • For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

                – amaslenn
                Sep 27 '18 at 12:41





















              • I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

                – user643722
                Mar 14 '18 at 10:16











              • For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

                – amaslenn
                Sep 27 '18 at 12:41



















              I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

              – user643722
              Mar 14 '18 at 10:16





              I would like to upgrade my Ubuntu 16.04 LTS release. I can edit /etc/update-manager/release-upgrades by changing Prompt=lts to Prompt=normal and then do-release-upgrade duly informs me that Artful 17.10 can be installed. I haven't see this documented by Microsoft though. Has anyone tried it?

              – user643722
              Mar 14 '18 at 10:16













              For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

              – amaslenn
              Sep 27 '18 at 12:41







              For do-release-upgrade you might need to set RELEASE_UPGRADER_NO_SCREEN=1: sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade (source: wsl-guide.org/en/latest/update.html)

              – amaslenn
              Sep 27 '18 at 12:41















              0














              You should backup and reinstall WSL. This time you should install a newer version from the Windows Store choosing your favorite distro.






              share|improve this answer




























                0














                You should backup and reinstall WSL. This time you should install a newer version from the Windows Store choosing your favorite distro.






                share|improve this answer


























                  0












                  0








                  0







                  You should backup and reinstall WSL. This time you should install a newer version from the Windows Store choosing your favorite distro.






                  share|improve this answer













                  You should backup and reinstall WSL. This time you should install a newer version from the Windows Store choosing your favorite distro.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 25 '18 at 7:24









                  CM777CM777

                  1




                  1























                      0














                      sudo -S apt-mark hold procps strace sudo
                      sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade


                      These should update the Ubuntu on Windows to the latest version.






                      share|improve this answer






























                        0














                        sudo -S apt-mark hold procps strace sudo
                        sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade


                        These should update the Ubuntu on Windows to the latest version.






                        share|improve this answer




























                          0












                          0








                          0







                          sudo -S apt-mark hold procps strace sudo
                          sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade


                          These should update the Ubuntu on Windows to the latest version.






                          share|improve this answer















                          sudo -S apt-mark hold procps strace sudo
                          sudo -S env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade


                          These should update the Ubuntu on Windows to the latest version.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 13 '18 at 6:31









                          Kulfy

                          4,21651342




                          4,21651342










                          answered Dec 12 '18 at 21:12









                          Chaitanya MalhotraChaitanya Malhotra

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • 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%2faskubuntu.com%2fquestions%2f885888%2fshould-i-update-ubuntu-on-wsl%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

                              How to change which sound is reproduced for terminal bell?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?