When I tried to install apache2 on Ubuntu 14.04, I got the following error message:
root@Final-Gitsetup-Developers:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libapache2-mpm-itk libapache2-mpm-itk:i386
E: Package 'apache2' has no installation candidate
Results of apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
http://archive.ubuntu.com/ubuntu/trusty/universe
http://repo.mysql.com/apt/ubuntu/wily/mysql-5.6
http://repo.mysql.com/apt/ubuntu/wily/mysql-apt-config
http://repo.mysql.com/apt/ubuntu/wily/mysql-tools
sudo apt-get update
and re-try installing Apache2