Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Custom tasksel task doesn't work

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
ema-pe
Posts: 3
Joined: 2018-03-03 17:41

[SOLVED] Custom tasksel task doesn't work

#1 Post by ema-pe »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Custom tasksel task doesn't work

#2 Post by bw123 »

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:

resigned by AI ChatGPT

ema-pe
Posts: 3
Joined: 2018-03-03 17:41

Re: Custom tasksel task doesn't work

#3 Post by ema-pe »

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

#4 Post by ema-pe »

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.

Post Reply