# Make sure your list of packages is update to date, and system upgrade sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get autoremove
# Installation sudo apt-get install apache2