E Package Apache2 Has No Installation Candidate

Posted on -

Download d-day full movie

July 16th, 2012, 01:20 AM

I have a pi running Plex, very basic setup. “Sudo apt-get install apache2” I get the error E: Package 'apache2' has no installation candidate. Mar 31, 2016 - We can install Apache easily using Ubuntu's package manager, apt. E: Package 'php5-mysql' has no installation candidate.

I am new to linux, and I am using Ubuntu 12.04 for some days. I was trying to install few apache modules and messed up thing. Therefore, to install a fresh copy of apache, I uninstalled that running version. I found /etc/apache2 folder is there. I though a fresh install would be better. And therefore I have deleted the /etc/apache2 directory and /etc/init.d/apache2 as well.
But now, I cant install apache again. when I try command
sudo apt-get install lamp-server^then it shows no error, but when i try:
root@user-Inspiron-N5010:~# service apache2 start
apache2: unrecognized serviceand in /etc/apache2 directory, only an empty 'mods-available' folder there.
How can I install Apache2 now?