[SOLVED] Custom tasksel task doesn't work

Kernels & Hardware, configuring network, installing services

[SOLVED] Custom tasksel task doesn't work

Postby ema-pe » 2018-03-03 17:50

Hi, I'm trying to create a custom tasksel task. This is the task (copied from the official README file of tasksel git repository):

File /usr/share/tasksel/mytask.desc:

Code: Select all
Task: graphical-games
Relevance: 9
Parent: games
Section: user
Description: Graphical games
 This task provides a variety of graphical games. Old-school unix games are
 not included.
Key:
 x-window-system-core
Packages: list
 quake
 myst
 monkey-island


But when I run tasksel --list-tasks this is the output:

Code: Select all
u desktop   Debian desktop environment
u gnome-desktop   GNOME
u xfce-desktop   Xfce
u kde-desktop   KDE
u cinnamon-desktop   Cinnamon
u mate-desktop   MATE
u lxde-desktop   LXDE
u web-server   web server
u print-server   print server
u ssh-server   SSH server
u laptop   laptop


I'm running Debian Stable. How can I solve this problem?
Last edited by ema-pe on 2018-03-04 17:23, edited 1 time in total.
ema-pe
 
Posts: 3
Joined: 2018-03-03 17:41

Re: Custom tasksel task doesn't work

Postby bw123 » 2018-03-03 18:13

from /usr/share/doc/tasksel/README.gz


The Key field lists packages that are essential to the task. If those
packages are not available, then the task will not be available either.


Code: Select all

$ apt policy x-window-system-core
x-window-system-core:
  Installed: (none)
  Candidate: (none)
  Version table:

User avatar
bw123
 
Posts: 3075
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Custom tasksel task doesn't work

Postby ema-pe » 2018-03-04 10:26

I edited the task file in this manner:

Code: Select all
Task: graphical-games
Relevance: 1
Section: user
Description: Graphical games
 This task provides a variety of graphical games. Old-school unix games are
 not included.
Packages: list
  sudo
  vim
  git


But when I run tasksel again the task isn't displayed. It is possible that is a bug of the program?
ema-pe
 
Posts: 3
Joined: 2018-03-03 17:41

Re: Custom tasksel task doesn't work

Postby ema-pe » 2018-03-04 17:23

With this example tasks tasksel seems to work correctly:

Code: Select all
Task: mytask
Section: user
Description: Example task
  I love this example task
Key:
  sudo
Packages: list
  git


I think that the problem was that I placed the file in the wrong directory and used some wrong fields.
ema-pe
 
Posts: 3
Joined: 2018-03-03 17:41


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable