Problem scenario
You tried this command: sudo apt-get install httpd
But you got this error message as a result:
"...E: Package 'httpd' has no installation candidate"
You tried this command as root:
apt-get install apache2-bin 2.4.7-1ubuntu4.13
But you get this error message as a result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 2.4.7-1ubuntu4.13
E: Couldn't find any package by regex '2.4.7-1ubuntu4.13'
How do you install Apache web server on your Ubuntu server?
Solution
Run this command: sudo apt-get -y install apache2-bin