I can't seem to install LAMP server on my Ubuntu 14.10, I have tried the methods listed below:
sudo apt-get install apache2
sudo apt-get install lamp-server^
sudo apt-get install tasksel
All methods refused to work.
The following errors were encountered…
E: Unable to locate package lamp-server^
E: Couldn't find task 'lamp-server'
E: Couldn't find any package by regex 'lamp-server^'
Also
E: Package 'apache2' has no installation candidate
What can I do?
Best Answer
Open the terminal and type:
A Package configuration window will open. Select a task by scrolling down or pressing the down arrow key ( ↓ ) and pressing space. This will put an asterisk beside the selected task and mark it for installation. Tasks that are already installed tasks are marked by an asterisk. If you make a mistake, press space again to unselect a selected task. From the Software selection list select LAMP server (LAMP server = Linux, Apache2, MySQL, PHP) and use the Tab key to select <Ok> and then press Enter as shown in the below screenshot:
You may need to wait a while for the packages in the selected task to finish installing.
Alternatively run the following commands to install LAMP server: