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

eMcE 574287 at bugs.launchpad.net
Fri May 10 20:22:13 UTC 2013


Ok, here is some help to restore the system from "TTY_only" after
tasksel removed important packages:

sudo apt-get install $(for i in $(cat /var/log/dpkg.log |grep -oP
"(?<=`date +%Y-%m-%d`\s\d\d\:\d\d:\d\d\sremove)\s\S*\s"); do echo -n "$i
"; done;)

Which basically looks in the dpkg.log for packages removed today and
reinstalls them by handing the package-names over to apt-get. It also
restores other packages :)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/574287

Title:
  tasksel: forcefully removes packages when tasks overlap

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

Bug description:
  TEST CASE

  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

  OBSERVATIONS

  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:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/574287/+subscriptions




More information about the foundations-bugs mailing list