Linux Ubuntu/Linux-Mint Apt Source Repo SetUp

The Tip Show Step-by-Step How-to SetUp the Ubuntu/Linux-Mint nginx Apt Repo:

  1. Open a Terminal Window
  2. Add GPT Key:
    cd $HOME/Downloads
    wget http://nginx.org/keys/nginx_signing.key
    sudo su
    apt-key add nginx_signing.key
  3. Edit Apt Sources:
    nano /etc/apt/sources.list.d/nginx.list

    Append:

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

    Substitute to Your Ubuntu Release Name (Example: saucy).

    For Newest Releases if 404 Not Found then Try with the Preceding Release.

    Ctrl+x to Save and Exit.