$ sudo install -m 0755 -d /etc/apt/keyrings
$ curl -fsSL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xabf5bd827bd9bf62" | sudo gpg --dearmor -o /etc/apt/keyrings/nginx.gpg
$ sudo chmod a+r /etc/apt/keyrings/nginx.gpg
cat <<EOL | sudo tee /etc/apt/sources.list.d/nginx.list
deb [signed-by=/etc/apt/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx
deb-src [signed-by=/etc/apt/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx
EOL
$ sudo apt-get update