How to upgrade nginx on Ubuntu 16.04How can I upgrade nginx after adding ppa:nginx/development?Recompile Nginx with nginx-push-stream-module?Can't upgrade nginx on ubuntu 12.04official nginx trusty ppa gives KEYEXPIRED gpg errorupgrade ICU version ubuntu 16.04nginx troubleshooting Ubuntu 16.04 ( dependency problems)Nginx failed question programs not downloading

Length-terminated sequences

Company asks (more than once) if I can involve family members in project

Wood glue versus epoxy for doweling stripped screw holes

Mutate my DNA sequence

Explanation for why nickel turns green in hydrochloric acid

If ten experts each of different fields where sent back 10 000y, can they recreate the 21 century in 100y?

Do European politicians typically put their pronouns on their social media pages?

Extract lines from files with names begining with given letter

How to write 2**n - 1 as a recursive function?

Is rent considered a debt?

Implement the 2D Hadamard Transform

Holding cost vs carrying cost vs storage cost

Why is Microwaved mac & cheese burnt where they touch?

Is there a name for the phenomenon of false positives counterintuitively outstripping true positives

Can a company prevent a co-author of a paper to put his name on it?

How are astronauts in the ISS protected from electric shock?

Is Jupiter bright enough to be seen in color by the naked eye from Jupiter orbit?

Is the EU Settlement Scheme legal?

What does "Summoned creature has maximum hit points" actually mean?

Asimov's story where a man's speech contains no information

Can someone interview their sibling?

Integrate GA or GA360 with SFMC?

Response to referee after rejection

Algorithm that converts array-like data into MathJax: Python



How to upgrade nginx on Ubuntu 16.04


How can I upgrade nginx after adding ppa:nginx/development?Recompile Nginx with nginx-push-stream-module?Can't upgrade nginx on ubuntu 12.04official nginx trusty ppa gives KEYEXPIRED gpg errorupgrade ICU version ubuntu 16.04nginx troubleshooting Ubuntu 16.04 ( dependency problems)Nginx failed question programs not downloading






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















We are currently running nginx on ubuntu, installed version is:
1.10.3-0ubuntu0.16.04.3



Running sudo apt update it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.



How do we upgrade to the latest version?










share|improve this question
































    0

















    We are currently running nginx on ubuntu, installed version is:
    1.10.3-0ubuntu0.16.04.3



    Running sudo apt update it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.



    How do we upgrade to the latest version?










    share|improve this question




























      0












      0








      0








      We are currently running nginx on ubuntu, installed version is:
      1.10.3-0ubuntu0.16.04.3



      Running sudo apt update it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.



      How do we upgrade to the latest version?










      share|improve this question















      We are currently running nginx on ubuntu, installed version is:
      1.10.3-0ubuntu0.16.04.3



      Running sudo apt update it reflects that we are on the latest version, however going to nginx.org shows the latest version is 1.17.



      How do we upgrade to the latest version?







      upgrade nginx






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked May 29 at 14:44









      SteveSteve

      1




      1























          3 Answers
          3






          active

          oldest

          votes


















          1


















          Follow below commands from the terminal.



          cd /tmp



          wget http://nginx.org/keys/nginx_signing.key



          sudo apt-key add nginx_signing.key



          sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"



          sudo apt-get update



          sudo apt-get dist-upgrade






          share|improve this answer


























          • After doing this I still get the same version?

            – Steve
            May 30 at 6:02


















          0


















          The best solution is, Compile Nignx yourself. It will give you the latest updated version.



          Compiled packages are not always the updated version, But they focus on the stable version.






          share|improve this answer

































            0


















            Follow the instructions on the Nginx website:



            http://nginx.org/en/linux_packages.html#Ubuntu




            Install the prerequisites:



            sudo apt install curl gnupg2 ca-certificates lsb-release



            To set up the apt repository for stable nginx packages, run the following command:



            echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


            If you would like to use mainline nginx packages, run the following command instead:



            echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


            Next, import an official nginx signing key so apt could verify the packages
            authenticity:



            curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -


            Verify that you now have the proper key:



            sudo apt-key fingerprint ABF5BD827BD9BF62


            The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:



            pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
            573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
            uid [ unknown] nginx signing key <signing-key@nginx.com>


            To install nginx,
            run the following commands:



            sudo apt update
            sudo apt install nginx






            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/4.0/"u003ecc by-sa 4.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%2f1147144%2fhow-to-upgrade-nginx-on-ubuntu-16-04%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









              1


















              Follow below commands from the terminal.



              cd /tmp



              wget http://nginx.org/keys/nginx_signing.key



              sudo apt-key add nginx_signing.key



              sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"



              sudo apt-get update



              sudo apt-get dist-upgrade






              share|improve this answer


























              • After doing this I still get the same version?

                – Steve
                May 30 at 6:02















              1


















              Follow below commands from the terminal.



              cd /tmp



              wget http://nginx.org/keys/nginx_signing.key



              sudo apt-key add nginx_signing.key



              sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"



              sudo apt-get update



              sudo apt-get dist-upgrade






              share|improve this answer


























              • After doing this I still get the same version?

                – Steve
                May 30 at 6:02













              1














              1










              1









              Follow below commands from the terminal.



              cd /tmp



              wget http://nginx.org/keys/nginx_signing.key



              sudo apt-key add nginx_signing.key



              sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"



              sudo apt-get update



              sudo apt-get dist-upgrade






              share|improve this answer














              Follow below commands from the terminal.



              cd /tmp



              wget http://nginx.org/keys/nginx_signing.key



              sudo apt-key add nginx_signing.key



              sudo sh -c "echo 'deb http://nginx.org/packages/stable/ubuntu/ '$(lsb_release -cs)' nginx' > /etc/apt/sources.list.d/Nginx.list"



              sudo apt-get update



              sudo apt-get dist-upgrade







              share|improve this answer













              share|improve this answer




              share|improve this answer










              answered May 29 at 15:19









              ScareCrowScareCrow

              9512 bronze badges




              9512 bronze badges















              • After doing this I still get the same version?

                – Steve
                May 30 at 6:02

















              • After doing this I still get the same version?

                – Steve
                May 30 at 6:02
















              After doing this I still get the same version?

              – Steve
              May 30 at 6:02





              After doing this I still get the same version?

              – Steve
              May 30 at 6:02













              0


















              The best solution is, Compile Nignx yourself. It will give you the latest updated version.



              Compiled packages are not always the updated version, But they focus on the stable version.






              share|improve this answer






























                0


















                The best solution is, Compile Nignx yourself. It will give you the latest updated version.



                Compiled packages are not always the updated version, But they focus on the stable version.






                share|improve this answer




























                  0














                  0










                  0









                  The best solution is, Compile Nignx yourself. It will give you the latest updated version.



                  Compiled packages are not always the updated version, But they focus on the stable version.






                  share|improve this answer














                  The best solution is, Compile Nignx yourself. It will give you the latest updated version.



                  Compiled packages are not always the updated version, But they focus on the stable version.







                  share|improve this answer













                  share|improve this answer




                  share|improve this answer










                  answered May 29 at 14:49









                  Sakhawat HossenSakhawat Hossen

                  1




                  1
























                      0


















                      Follow the instructions on the Nginx website:



                      http://nginx.org/en/linux_packages.html#Ubuntu




                      Install the prerequisites:



                      sudo apt install curl gnupg2 ca-certificates lsb-release



                      To set up the apt repository for stable nginx packages, run the following command:



                      echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                      If you would like to use mainline nginx packages, run the following command instead:



                      echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                      Next, import an official nginx signing key so apt could verify the packages
                      authenticity:



                      curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -


                      Verify that you now have the proper key:



                      sudo apt-key fingerprint ABF5BD827BD9BF62


                      The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:



                      pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
                      573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
                      uid [ unknown] nginx signing key <signing-key@nginx.com>


                      To install nginx,
                      run the following commands:



                      sudo apt update
                      sudo apt install nginx






                      share|improve this answer
































                        0


















                        Follow the instructions on the Nginx website:



                        http://nginx.org/en/linux_packages.html#Ubuntu




                        Install the prerequisites:



                        sudo apt install curl gnupg2 ca-certificates lsb-release



                        To set up the apt repository for stable nginx packages, run the following command:



                        echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                        If you would like to use mainline nginx packages, run the following command instead:



                        echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                        Next, import an official nginx signing key so apt could verify the packages
                        authenticity:



                        curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -


                        Verify that you now have the proper key:



                        sudo apt-key fingerprint ABF5BD827BD9BF62


                        The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:



                        pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
                        573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
                        uid [ unknown] nginx signing key <signing-key@nginx.com>


                        To install nginx,
                        run the following commands:



                        sudo apt update
                        sudo apt install nginx






                        share|improve this answer






























                          0














                          0










                          0









                          Follow the instructions on the Nginx website:



                          http://nginx.org/en/linux_packages.html#Ubuntu




                          Install the prerequisites:



                          sudo apt install curl gnupg2 ca-certificates lsb-release



                          To set up the apt repository for stable nginx packages, run the following command:



                          echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                          If you would like to use mainline nginx packages, run the following command instead:



                          echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                          Next, import an official nginx signing key so apt could verify the packages
                          authenticity:



                          curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -


                          Verify that you now have the proper key:



                          sudo apt-key fingerprint ABF5BD827BD9BF62


                          The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:



                          pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
                          573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
                          uid [ unknown] nginx signing key <signing-key@nginx.com>


                          To install nginx,
                          run the following commands:



                          sudo apt update
                          sudo apt install nginx






                          share|improve this answer
















                          Follow the instructions on the Nginx website:



                          http://nginx.org/en/linux_packages.html#Ubuntu




                          Install the prerequisites:



                          sudo apt install curl gnupg2 ca-certificates lsb-release



                          To set up the apt repository for stable nginx packages, run the following command:



                          echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                          If you would like to use mainline nginx packages, run the following command instead:



                          echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list


                          Next, import an official nginx signing key so apt could verify the packages
                          authenticity:



                          curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -


                          Verify that you now have the proper key:



                          sudo apt-key fingerprint ABF5BD827BD9BF62


                          The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:



                          pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14]
                          573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
                          uid [ unknown] nginx signing key <signing-key@nginx.com>


                          To install nginx,
                          run the following commands:



                          sudo apt update
                          sudo apt install nginx







                          share|improve this answer















                          share|improve this answer




                          share|improve this answer








                          edited Oct 3 at 6:28









                          Zanna

                          53.5k15 gold badges150 silver badges251 bronze badges




                          53.5k15 gold badges150 silver badges251 bronze badges










                          answered Jun 5 at 15:03









                          ephemerephemer

                          1011 bronze badge




                          1011 bronze badge































                              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%2f1147144%2fhow-to-upgrade-nginx-on-ubuntu-16-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

                              Tamil (spriik) Luke uk diar | Nawigatjuun

                              Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                              Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?