You can install Apache on Ubuntu 22.04 by running the command sudo apt update && sudo apt install apache2.