2

I am a bit surprised by the version of nginx which comes with the new LTS version of Ubuntu.

Why is it only the 1.18 version for Ubuntu 22.04, it's the same version of Ubuntu 20.04 LTS?

Is there any official more recent release, like 1.20.2?

1 Answers1

1

Use the nginx official repository as the latest nginx version is not yet added in Ubuntu Jammy (Ubuntu 22.04) repositories.

Run the following command to add the nginx repository according to Ubuntu codename.

echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
    | sudo tee /etc/apt/sources.list.d/nginx.list && \
curl https://nginx.org/keys/nginx_signing.key | \
gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg

Additional information in this blog: https://medium.com/@bhojport/installing-a-specific-version-of-nginx-on-ubuntu-or-any-other-platform-4fed8e859534

Official Nginx Key installation can be found here: https://blog.nginx.org/blog/updating-pgp-key-for-nginx-software

zhiyan114
  • 103