Doc URL: https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/#install_debian_ubuntu
Issue:
A customer reported that Step 7 of the Ubuntu installation instructions fails unless sudo is added before the wget command.
Current command:
wget -O - https://cs.nginx.com/static/keys/nginx_signing.key \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
Customer feedback
Please add sudo to Step 7 (wget cmd) in the ubuntu commands. It hangs for me otherwise then everything else fails :o(
Suggested fix
Update the command to:
sudo wget -O - https://cs.nginx.com/static/keys/nginx_signing.key \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null