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?
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?
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
Additional information in this blog: https://medium.com/@bhojport/installing-a-specific-version-of-nginx-on-ubuntu-or-any-other-platform-4fed8e859534
apt update
which makes this answer incomplete.
– Thomas Ward
Nov 16 '22 at 21:45