Unable to install LAMP server
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?
software-installation apache2 lamp
add a comment |
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?
software-installation apache2 lamp
Did you trysudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?
– David Foerster
Mar 23 '15 at 10:29
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your/etc/apt/sources.list
and make absolutely sure it's complete.
– ThatGuy
Jul 17 '17 at 13:15
add a comment |
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?
software-installation apache2 lamp
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?
software-installation apache2 lamp
software-installation apache2 lamp
edited Mar 23 '15 at 10:20
David Foerster
28.6k1367113
28.6k1367113
asked Mar 23 '15 at 10:12
Orobo Lucky OzokaOrobo Lucky Ozoka
41128
41128
Did you trysudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?
– David Foerster
Mar 23 '15 at 10:29
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your/etc/apt/sources.list
and make absolutely sure it's complete.
– ThatGuy
Jul 17 '17 at 13:15
add a comment |
Did you trysudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?
– David Foerster
Mar 23 '15 at 10:29
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your/etc/apt/sources.list
and make absolutely sure it's complete.
– ThatGuy
Jul 17 '17 at 13:15
Did you try
sudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?– David Foerster
Mar 23 '15 at 10:29
Did you try
sudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?– David Foerster
Mar 23 '15 at 10:29
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your /etc/apt/sources.list
and make absolutely sure it's complete.– ThatGuy
Jul 17 '17 at 13:15
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your /etc/apt/sources.list
and make absolutely sure it's complete.– ThatGuy
Jul 17 '17 at 13:15
add a comment |
2 Answers
2
active
oldest
votes
- Make sure you have a currently supported version OS. If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release.
- Search in the Dash for Software & Updates.
- Click the Software & Updates icon to open a new Software & Updates window.
- Select the first tab called Ubuntu Software.
- Under the Downloadable from the Internet heading put a check mark in the first four checkboxes in the list.
- Authenticate with your user password to apply any changes that you have made to the software sources and close the window.
Open the terminal and type:
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
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:
sudo apt install tasksel
sudo tasksel install lamp-server
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
add a comment |
Lamp-Server is an argument to the Tasksel application
But I paid a huge penalty by using tasksel as it cleans the entire system; all applications, packages including Desktop running under 16.04 Ubuntu got removed including networking connections.
I don’t recommend Tasksel; instead you can install package by package at command level.
Sequence is simple:
Apache, MySQL followed by PHP
Hope this helps!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f600195%2funable-to-install-lamp-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
- Make sure you have a currently supported version OS. If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release.
- Search in the Dash for Software & Updates.
- Click the Software & Updates icon to open a new Software & Updates window.
- Select the first tab called Ubuntu Software.
- Under the Downloadable from the Internet heading put a check mark in the first four checkboxes in the list.
- Authenticate with your user password to apply any changes that you have made to the software sources and close the window.
Open the terminal and type:
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
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:
sudo apt install tasksel
sudo tasksel install lamp-server
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
add a comment |
- Make sure you have a currently supported version OS. If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release.
- Search in the Dash for Software & Updates.
- Click the Software & Updates icon to open a new Software & Updates window.
- Select the first tab called Ubuntu Software.
- Under the Downloadable from the Internet heading put a check mark in the first four checkboxes in the list.
- Authenticate with your user password to apply any changes that you have made to the software sources and close the window.
Open the terminal and type:
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
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:
sudo apt install tasksel
sudo tasksel install lamp-server
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
add a comment |
- Make sure you have a currently supported version OS. If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release.
- Search in the Dash for Software & Updates.
- Click the Software & Updates icon to open a new Software & Updates window.
- Select the first tab called Ubuntu Software.
- Under the Downloadable from the Internet heading put a check mark in the first four checkboxes in the list.
- Authenticate with your user password to apply any changes that you have made to the software sources and close the window.
Open the terminal and type:
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
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:
sudo apt install tasksel
sudo tasksel install lamp-server
- Make sure you have a currently supported version OS. If your OS version is not currently supported, update your software sources by following the instructions in How to install software or upgrade from an old unsupported release? and then skip steps 2-6 since they don't apply in case you have an unsupported release.
- Search in the Dash for Software & Updates.
- Click the Software & Updates icon to open a new Software & Updates window.
- Select the first tab called Ubuntu Software.
- Under the Downloadable from the Internet heading put a check mark in the first four checkboxes in the list.
- Authenticate with your user password to apply any changes that you have made to the software sources and close the window.
Open the terminal and type:
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel
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:
sudo apt install tasksel
sudo tasksel install lamp-server
edited Feb 11 at 2:46
answered Mar 23 '15 at 10:38
karelkarel
60.7k13132155
60.7k13132155
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
add a comment |
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
I still get an error. Reading package lists... Done Building dependency tree Reading state information... Done Package tasksel 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 E: Package 'tasksel' has no installation candidate
– Orobo Lucky Ozoka
Mar 23 '15 at 14:00
add a comment |
Lamp-Server is an argument to the Tasksel application
But I paid a huge penalty by using tasksel as it cleans the entire system; all applications, packages including Desktop running under 16.04 Ubuntu got removed including networking connections.
I don’t recommend Tasksel; instead you can install package by package at command level.
Sequence is simple:
Apache, MySQL followed by PHP
Hope this helps!
add a comment |
Lamp-Server is an argument to the Tasksel application
But I paid a huge penalty by using tasksel as it cleans the entire system; all applications, packages including Desktop running under 16.04 Ubuntu got removed including networking connections.
I don’t recommend Tasksel; instead you can install package by package at command level.
Sequence is simple:
Apache, MySQL followed by PHP
Hope this helps!
add a comment |
Lamp-Server is an argument to the Tasksel application
But I paid a huge penalty by using tasksel as it cleans the entire system; all applications, packages including Desktop running under 16.04 Ubuntu got removed including networking connections.
I don’t recommend Tasksel; instead you can install package by package at command level.
Sequence is simple:
Apache, MySQL followed by PHP
Hope this helps!
Lamp-Server is an argument to the Tasksel application
But I paid a huge penalty by using tasksel as it cleans the entire system; all applications, packages including Desktop running under 16.04 Ubuntu got removed including networking connections.
I don’t recommend Tasksel; instead you can install package by package at command level.
Sequence is simple:
Apache, MySQL followed by PHP
Hope this helps!
edited Feb 10 at 20:21
Zanna
51.2k13139243
51.2k13139243
answered May 24 '18 at 11:37
Ravi PothulaRavi Pothula
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f600195%2funable-to-install-lamp-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try
sudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server
? What's the output there?– David Foerster
Mar 23 '15 at 10:29
'apache2' has no installation candidate
concerns me. It's in the core repo's, so I'd be looking at your/etc/apt/sources.list
and make absolutely sure it's complete.– ThatGuy
Jul 17 '17 at 13:15