Update nginx to the latest version

Discussion in 'Installation/Configuration' started by George321, Jan 26, 2017.

  1. George321

    George321 New Member

    i have my server configured like this tutorial here: https://www.howtoforge.com/tutorial/perfect-server-debian-jessie-nginx-bind-dovecot-ispconfig-3.1/

    And now i see that the newest version of nginx is nginx-1.10.2 and i have nginx version: nginx/1.6.2
    I tried these:
    sudo sh -c "echo 'deb http://nginx.org/packages/debian/ `lsb_release -cs` nginx' >> /etc/apt/sources.list"
    $ sudo sh -c "echo 'deb-src http://nginx.org/packages/debian/ `lsb_release -cs` nginx' >> /etc/apt/sources.list"
    $ curl http://nginx.org/keys/nginx_signing.key | apt-key add -
    $ sudo apt-get update

    and then
    sudo apt-get install nginx
    but i get errors http://pastebin.com/d3BQaUH8

    So how i can safely update nginx?

Share This Page