How to Install Nginx on Ubuntu 22.04

Hello everyone, I urgently need to learn how to install Nginx on Ubuntu 22.04 without receiving errors. please guide me.

On Ubuntu, that’s typically as simple as sudo apt-get install nginx. What error do you get when you try that?