[Bug 574287] Re: tasksel: forcefully removes packages when tasks overlap

Alex Ordonez ordonez.alex.pierce at gmail.com
Sun Sep 9 18:16:21 UTC 2012

# sudo apt-get remove lamp-server^

Began removing my whole system. Force closed the terminal. I am glad I
was reading the output, because my system still works for now (it just
happened, so I will find out what damage was done).

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.

  tasksel: forcefully removes packages when tasks overlap

Status in “apt” package in Ubuntu:
Status in “tasksel” package in Ubuntu:
Status in “tasksel” package in Debian:
  Fix Released

Bug description:

  1. Boot Lucid LiveCD

  2. run "sudo tasksel" and select "virtual machine host"

  3. run "sudo tasksel" and deselect "virtual machine host"

  4. watch how tasksel uninstalls your system


  What seems to happen is that apt vengefully removes ALL of the items
  associated with one task, including several base dependencies of other
  tasks (e.g. ubuntu-desktop)

  One illustrative example is the openssh-server task:
  This one includes the packages openssh-server, tcpd and libwrap0.
  From a normal ubuntu-desktop (e.g. ~liveCD) both tcpd and libwrap0 are already installed, and the task-install pulls in only openssh-server.
  However when the task is removed, all these three packages (openssh-server, tcpd and libwrap0) are forcefully removed.
  Since libwrap0 is a core dependency of gnome, a large part of gnome will be removed alongside the removal of the task.

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list