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

I am trying to install tasksel in order to install LAMP but for some reason it always gives me this error:

E: Unable to locate package tasksel
root@TheShop:~# sudo apt-get install tasksel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package tasksel
share|improve this question

closed as off-topic by Andrea Corbellini, Eric Carvalho, precise, Nitin Venkatesh, Richard Mar 16 '14 at 12:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – Andrea Corbellini, Eric Carvalho, precise, Nitin Venkatesh, Richard
If this question can be reworded to fit the rules in the help center, please edit the question.

Does sudo apt-get update help? – ulidtko Jan 23 '11 at 3:20
Don't tell me that you're not connected to Internet! ;-) – Alireza Hos Jan 2 '14 at 16:01
Why the root account? Why not just install it as a normal user? – Parto Mar 15 '14 at 16:09
What is the output of apt-cache policy tasksel? – Braiam Mar 15 '14 at 22:26

first try to sudo apt-get update

after that, try to install it from Ubuntu software center

if you still have problem, post it by editing your questions

share|improve this answer

Did you try aptitude instead of apt-get?

sudo aptitude update
sudo aptitude show tasksel

I always use aptitude, gives a lot of useful information. See also this thread on severfault

share|improve this answer

sudo aptitude install tasksel seems to work in natty

As a tip change install to search to check if package is available

share|improve this answer

I have been through the same problem.

The simple solution that worked for me is to set up software sources to download from "Main Server".

One way to get to the "software sources" window is as follows:

  • Start Ubuntu Software Centre
  • Go to the Edit menu
  • Select Software Sources
  • Change download from to the "Main Server"
  • Then write these commands one by one in terminal:

    sudo apt-get update
    sudo apt-get install tasksel

Thats it.

share|improve this answer