Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
root@ubuntu-server:~# apt-get install lamp-server^
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lamp-server^
E: Couldn't find task 'lamp-server'
E: Couldn't find any package by regex 'lamp-server^'
share|improve this question
    
And let me know if have any issue? – Raja Jan 26 at 7:54

Answer2: If you are installing a package for the first time then you have update source cache and you can install.

In terminal do as

sudo apt-get update
sudo apt-get install lamp-server^

Answer1: You can install it with tasksel easily.

sudo apt-get install tasksel ; sudo tasksel

and in the options choose LAMP server and forward.

Hope it helps.

share|improve this answer
    
root@ubuntu-server:~# apt-get install gedit Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gedit why?? – sahrizal s Jan 26 at 8:06
    
@sahrizals first do , sudo apt-get update then try – Raja Jan 26 at 8:07
    
when update.. only this appears. root@ubuntu-server:~# sudo apt-get update sudo: unable to resolve host ubuntu-server Ign download.owncloud.org InRelease Hit download.owncloud.org Release.gpg Hit download.owncloud.org Release Hit download.owncloud.org Packages Ign download.owncloud.org Translation-en_SG Ign download.owncloud.org Translation-en Reading package lists... Done – sahrizal s Jan 26 at 8:10
    
and unable locate too – sahrizal s Jan 26 at 8:11
    
Issue is simple , your server unable to reach to update server all URL's. From update manager settings try to choose best mirror from your location and try installing from that. – Raja Jan 26 at 8:22

Try running the following:

sudo tasksel install lamp-server

Reference:

share|improve this answer
    
root@ubuntu-server:~# apt-get install gedit Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gedit how about this one? – sahrizal s Jan 26 at 8:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.