公式だとLinuxやUbuntuがごちゃごちゃに書いてあったので、まとめ。
root権限で実行する。
wget https://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
cp /etc/apt/sources.list /etc/apt/sources.list.org
cat << EOF >> /etc/apt/sources.list
deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx
EOF
apt update
apt install nginx
sources.listに書き出すxenialを書き換えればtrustyやzestyでもつかえるみたいです。