Can't update Nginx to version higher than 1.12.2 in ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have been trying to update Nginx to it's latest version in my ubuntu server.



So, I tried with this command:



sudo add-apt-repository ppa:nginx/stable

sudo apt-get update

sudo apt-get install nginx


But the result showing that Nginx is already in the newest version (1.12.2-0+xenial0)



enter image description here



Here's the output of sudo apt-cache policy nginx



enter image description here










share|improve this question























  • Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
    – Chai T. Rex
    Feb 2 at 23:24














up vote
0
down vote

favorite












I have been trying to update Nginx to it's latest version in my ubuntu server.



So, I tried with this command:



sudo add-apt-repository ppa:nginx/stable

sudo apt-get update

sudo apt-get install nginx


But the result showing that Nginx is already in the newest version (1.12.2-0+xenial0)



enter image description here



Here's the output of sudo apt-cache policy nginx



enter image description here










share|improve this question























  • Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
    – Chai T. Rex
    Feb 2 at 23:24












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have been trying to update Nginx to it's latest version in my ubuntu server.



So, I tried with this command:



sudo add-apt-repository ppa:nginx/stable

sudo apt-get update

sudo apt-get install nginx


But the result showing that Nginx is already in the newest version (1.12.2-0+xenial0)



enter image description here



Here's the output of sudo apt-cache policy nginx



enter image description here










share|improve this question















I have been trying to update Nginx to it's latest version in my ubuntu server.



So, I tried with this command:



sudo add-apt-repository ppa:nginx/stable

sudo apt-get update

sudo apt-get install nginx


But the result showing that Nginx is already in the newest version (1.12.2-0+xenial0)



enter image description here



Here's the output of sudo apt-cache policy nginx



enter image description here







server nginx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 at 21:06

























asked Feb 2 at 20:36









W.Jack

1033




1033











  • Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
    – Chai T. Rex
    Feb 2 at 23:24
















  • Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
    – Chai T. Rex
    Feb 2 at 23:24















Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
– Chai T. Rex
Feb 2 at 23:24




Please don't use screenshots for terminal output. Instead, paste the terminal output into the question, select it, and press the button in the editor.
– Chai T. Rex
Feb 2 at 23:24










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










Pre-Built Packages for Mainline version Ubuntu 16.04



For Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please copy/paste into text file and rename nginx_signing.key in Home Directory this key from our web site, and add it to the apt program keyring with the following command:



Copy and Pasted Saved Key in Home



sudo apt-key add nginx_signing.key


Append the following to the end of the /etc/apt/sources.list file:



sudo nano /etc/apt/sources.list

deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx


For Ubuntu then run the following commands:



sudo apt-get update 
sudo apt-get install nginx


SOURCE






share|improve this answer






















  • gpg: can't open 'nginx_signing.key': No such file or directory
    – W.Jack
    Feb 2 at 21:28










  • Added more precise Instructions.
    – EODCraft Staff
    Feb 2 at 22:36

















up vote
0
down vote













1.12.2 is the current stable version of nginx.



If you want the mainline version of nginx you have to use the PPA ppa:nginx/development instead of ppa:nginx/stable






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1002470%2fcant-update-nginx-to-version-higher-than-1-12-2-in-ubuntu-16-04%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Pre-Built Packages for Mainline version Ubuntu 16.04



    For Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please copy/paste into text file and rename nginx_signing.key in Home Directory this key from our web site, and add it to the apt program keyring with the following command:



    Copy and Pasted Saved Key in Home



    sudo apt-key add nginx_signing.key


    Append the following to the end of the /etc/apt/sources.list file:



    sudo nano /etc/apt/sources.list

    deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
    deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx


    For Ubuntu then run the following commands:



    sudo apt-get update 
    sudo apt-get install nginx


    SOURCE






    share|improve this answer






















    • gpg: can't open 'nginx_signing.key': No such file or directory
      – W.Jack
      Feb 2 at 21:28










    • Added more precise Instructions.
      – EODCraft Staff
      Feb 2 at 22:36














    up vote
    2
    down vote



    accepted










    Pre-Built Packages for Mainline version Ubuntu 16.04



    For Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please copy/paste into text file and rename nginx_signing.key in Home Directory this key from our web site, and add it to the apt program keyring with the following command:



    Copy and Pasted Saved Key in Home



    sudo apt-key add nginx_signing.key


    Append the following to the end of the /etc/apt/sources.list file:



    sudo nano /etc/apt/sources.list

    deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
    deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx


    For Ubuntu then run the following commands:



    sudo apt-get update 
    sudo apt-get install nginx


    SOURCE






    share|improve this answer






















    • gpg: can't open 'nginx_signing.key': No such file or directory
      – W.Jack
      Feb 2 at 21:28










    • Added more precise Instructions.
      – EODCraft Staff
      Feb 2 at 22:36












    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    Pre-Built Packages for Mainline version Ubuntu 16.04



    For Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please copy/paste into text file and rename nginx_signing.key in Home Directory this key from our web site, and add it to the apt program keyring with the following command:



    Copy and Pasted Saved Key in Home



    sudo apt-key add nginx_signing.key


    Append the following to the end of the /etc/apt/sources.list file:



    sudo nano /etc/apt/sources.list

    deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
    deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx


    For Ubuntu then run the following commands:



    sudo apt-get update 
    sudo apt-get install nginx


    SOURCE






    share|improve this answer














    Pre-Built Packages for Mainline version Ubuntu 16.04



    For Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please copy/paste into text file and rename nginx_signing.key in Home Directory this key from our web site, and add it to the apt program keyring with the following command:



    Copy and Pasted Saved Key in Home



    sudo apt-key add nginx_signing.key


    Append the following to the end of the /etc/apt/sources.list file:



    sudo nano /etc/apt/sources.list

    deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
    deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx


    For Ubuntu then run the following commands:



    sudo apt-get update 
    sudo apt-get install nginx


    SOURCE







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 2 at 22:01

























    answered Feb 2 at 21:11









    EODCraft Staff

    377316




    377316











    • gpg: can't open 'nginx_signing.key': No such file or directory
      – W.Jack
      Feb 2 at 21:28










    • Added more precise Instructions.
      – EODCraft Staff
      Feb 2 at 22:36
















    • gpg: can't open 'nginx_signing.key': No such file or directory
      – W.Jack
      Feb 2 at 21:28










    • Added more precise Instructions.
      – EODCraft Staff
      Feb 2 at 22:36















    gpg: can't open 'nginx_signing.key': No such file or directory
    – W.Jack
    Feb 2 at 21:28




    gpg: can't open 'nginx_signing.key': No such file or directory
    – W.Jack
    Feb 2 at 21:28












    Added more precise Instructions.
    – EODCraft Staff
    Feb 2 at 22:36




    Added more precise Instructions.
    – EODCraft Staff
    Feb 2 at 22:36












    up vote
    0
    down vote













    1.12.2 is the current stable version of nginx.



    If you want the mainline version of nginx you have to use the PPA ppa:nginx/development instead of ppa:nginx/stable






    share|improve this answer
























      up vote
      0
      down vote













      1.12.2 is the current stable version of nginx.



      If you want the mainline version of nginx you have to use the PPA ppa:nginx/development instead of ppa:nginx/stable






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        1.12.2 is the current stable version of nginx.



        If you want the mainline version of nginx you have to use the PPA ppa:nginx/development instead of ppa:nginx/stable






        share|improve this answer












        1.12.2 is the current stable version of nginx.



        If you want the mainline version of nginx you have to use the PPA ppa:nginx/development instead of ppa:nginx/stable







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 2 at 21:01









        Florian Diesch

        63.1k16157176




        63.1k16157176



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002470%2fcant-update-nginx-to-version-higher-than-1-12-2-in-ubuntu-16-04%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491