Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
root@TheShop:~# 
share|improve this question

closed as off-topic by Andrea Corbellini, Eric Carvalho, rusty, nitstorm, Richard Mar 16 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, rusty, nitstorm, Richard
If this question can be reworded to fit the rules in the help center, please edit the question.

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

4 Answers 4

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