tasksel

Asked by David Turner

I have heard about tasksel as being useful in setting up LAMP environment and read some instructions to set up LAMP starting by using tasksel.

The command "sudo apt-get install tasksel" fails on my Ubuntu 11.04 installation, returning "unable to locate package tasksel".

I have looked in the expected place usr/source and it is not there.

Also Ubuntu Software Installer doesn't display "tasksel" anywhere in the listing!

how do I get tasksel available??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu tasksel Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
Last query:
Last reply:
Revision history for this message
Eliah Kagan (degeneracypressure) said :
#1

Please reply with the output of this command:

lsb_release -a; echo; apt-cache policy tasksel

Please also specify whether you're running Ubuntu Server or a desktop system (so that future instructions can be written to correspond to your system, not because of any functional difference between the two with respect to tasksel).

Revision history for this message
David Turner (dturnertms) said :
#2

I get "No LSB modules are available", "Ubuntu", "Ubuntu 11.04", "Natty"

I downloaded Ubuntu 11.04 desktop from Ubuntu's own site onto my Window7 AMD-based PC

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#3

You've appear to have provided the information from the lsb_release -a part of the command, but not from the rest. Please select all the text in the Terminal (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here.

Revision history for this message
David Turner (dturnertms) said :
#4

It returned:

No command 'lsb' found, did you mean:
Command 'lsw' from package 'suckless-tools' (universe)
Command 'lst' from package 'lustre-utils' (universe)
Command 'lb' from package 'live-build' (universe)
Command 'ls' from package 'coreutils' (main)
Command 'lsh' from package 'lsh-client' (universe)
Command 'sb' from package 'lrzsz' (universe)
lsb: command not found

N: Unable to locate package tasksel

From this I gleened that the package lsb was not installed and set about installing it via the launchpad site:
Again there are a raft of dependencies and I am ploughing through them: I've installed about 10-12 dependencies to lsb including dependencies of lsb-core and lsb-graphics. Don't know how many more of them are left.

Is there a quicker way to do all this?? After I get lsb installed how far away am I from having taskel installed??

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#5

You don't have to install lsb_release. That command is almost definitely on your system. Your system would have to be very severely broken not to have it. It looks like you entered the command incorrectly.

"Is there a quicker way to do all this??"

It is much quicker if you provide *all* the text from the Terminal, as requested, even if things do not seem to work. Please select all the text in the Terminal (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here.

Also, you can avoid most typographic errors (and also save time) by copying commands and pasting them into the Terminal instead of typing them in manually.

As a reminder, this is the command that I am asking you to run:

lsb_release -a; echo; apt-cache policy tasksel

"how far away am I from having taskel installed??"

I don't know what is preventing tasksel from being installed, so I cannot answer that question.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#6

To clarify, when I said to provide all the text from the Terminal, I do *not* just mean the text that is created after you run the command. I mean everything, including the text of the prompt at which you entered the command, and the text of the command as you entered it. You can select all this text with Edit > Select All.

Revision history for this message
David Turner (dturnertms) said :
#7

Attempt 1:
=======

dturner@ubuntu:/$ lsb release -a; echo; apt-cache policy tasksel
No command 'lsb' found, did you mean:
 Command 'lsw' from package 'suckless-tools' (universe)
 Command 'lst' from package 'lustre-utils' (universe)
 Command 'lb' from package 'live-build' (universe)
 Command 'ls' from package 'coreutils' (main)
 Command 'lsh' from package 'lsh-client' (universe)
 Command 'sb' from package 'lrzsz' (universe)
lsb: command not found

N: Unable to locate package tasksel
dturner@ubuntu:/$

Attempt 2 N.B underscore between lsb and release is correctly added as per your last email.
=======

dturner@ubuntu:/$ lsb_release -a;echo; apt-cache policy tasksel
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

N: Unable to locate package tasksel
dturner@ubuntu:/$

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#8

Please run this command, then post all the text from the Terminal starting with the beginning of the line on which you entered it:

cd /etc/apt; ls -l sources.list.d; echo; cat sources.list

Revision history for this message
David Turner (dturnertms) said :
#9

Not sure what this is for, but the output I get is copied below

Last night I continued attempting to install lsb and all it's tree of dependencies: I have installed over 30 files and still have not got to the end. lsb-core is installed along with lsb-graphics, lsb-cxx. I'm currently going through the dependency tree of lsb-desktop.

Output
=====
dturner@ubuntu:/etc/apt$ ls -l sources.list.d; echo; cat sources.list
total 0
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty universe
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://gb.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu natty main
# deb-src http://extras.ubuntu.com/ubuntu natty main
dturner@ubuntu:/etc/apt$

Revision history for this message
Best Eliah Kagan (degeneracypressure) said :
#10

"Not sure what this is for, but the output I get is copied below"

It displays information about what software sources your system is configured to use, to install and update software. In general, if you are curious about what a command does, you can search the web for it or for parts of it. In the future I will provide more information about the commands I ask you to run, in case you are interested.

"Last night I continued attempting to install lsb and all it's tree of dependencies: I have installed over 30 files and still have not got to the end. lsb-core is installed along with lsb-graphics, lsb-cxx. I'm currently going through the dependency tree of lsb-desktop."

I'm sorry to hear that, since none of that has anything to do with your problem, so you've been wasting your time.

The lsb_release command was so we would know what release your Ubuntu system thinks it is (which is, for all practical purposes, what it is, but in some problematic situations it differs from the expected). The lsb_release command is present on all Ubuntu systems, and once you ran it correctly, it ran, without anything special needing to be installed. If you remember all the packages you've been installing, you can remove them, because they are irrelevant to the problem you are having installing tasksel.

You may recall that you only got the "No command 'lsb' found" message because you *incorrectly* entered the lsb_release command, replacing the underscore with a space.

Has it been a long time since you have run "sudo apt-get update" or otherwise updated your local package information? Try running "sudo apt-get update" followed by "sudo apt-get install tasksel" -- that may be sufficient. If that does work, then you should also run "sudo apt-get upgrade -y" followed by "sudo apt-get dist-upgrade", to get important updates (some of which fix security vulnerabilities). You might already have all such available updates, but you might not.

If that doesn't work, then do step 1 at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure, then run "sudo apt-get update" again, then try installing tasksel using "sudo apt-get install tasksel".

If that doesn't work, then perform steps 2 through 5 at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure, then try installing tasksel using "sudo apt-get install tasksel". If that fails, then please select all the text in the Terminal, copy it to the clipboard, and paste it here.

Revision history for this message
David Turner (dturnertms) said :
#11

Thanks thats very helpful.

I'm not bothered about wasteing the time installing lsb: I did get all of it installed last night in the end. Its helped me familiarise myself with the installer and the little problems that crop up. Running the tasksel command was to enable LAMP to be set up on my machine which I will return to at a later time; the first job to get my wireless adapter working correctly.

Its good to know the upgrade and install commands: I hadn't stumbled across these in any help files. I guess they automatically install the default components to get Linux installation complete.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#12

"Thanks thats very helpful."

You've marked this question as Solved. Is that to say that you were able to get tasksel installed?

(By the way, I'm glad that installing lsb proved to be useful, even though unrelated to tasksel and LAMP.)

Revision history for this message
David Turner (dturnertms) said :
#13

Not yet. But I believe I have the know-how now how to do it and get on with LAMP : not moving forward on that though until next week. Priority now is to get adapter working later on this week.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#14

If you experience further problems when attempting to install tasksel, please feel free to reopen this question.