Help!

Bug#542767: apt: autoremove removes needed packages

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist RSS
Next:  [PATCH] Refactor: split off emptying a package's ..  
Author Message
peter green
External


Since: Jun 12, 2007
Posts: 57



PostPosted: Sat Aug 29, 2009 10:10 pm    Post subject: Bug#542767: apt: autoremove removes needed packages
Archived from groups: linux>debian>bugs>dist (more info?)

>I tried to install Internet Explorer to view a web site designed for IE.
>Downloaded IE8 from microsoft.com, installed wine, installed current
>wine beta from winehq. Didn't work. Tried viewing the web site with
>epiphany (already installed) and lynx. Installed and tried konqueror,
>galeon. Removed epiphany, galeon and konquerer in one apt-get call.
>
>Then a lot of packages were marked for autoremoval

This sounds like a case of what I call the "metapackage up/down problem"

The basic scenario goes as follows

* the user (or possiblly some software such as tasksel) installs a metapackage (in this case it appears it was "gnome").
* since the only package the user manually installed was the metapackage everything the metapackage depends on is considered automatically installed
* the user removes one or more packages that the metapackage depends on (in this case the epiphany packages) causing the metapackage to be removed
* with the metapackage gone the other stuff the metapackage pulled in is now considered "automatically installed and no longer required"

The problem with this issue is it's not bug in how the algorithm is implemented, it's working as designed. It's just that the design is producing surprising results (removing one desktop app can result in a metapackage being removed and the whole desktop being marked as "automatically installed an no longer required")

>be:~# apt-get purge epiphany-browser-data epiphany-extensions epiphany-extensions-more epiphany-gecko galeon konqueror
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>The following packages were automatically installed and are no longer required:
<snip>
>The following extra packages will be installed:
> gnome-core gnome-desktop-environment
>Suggested packages:
> gnome-dbg
>Recommended packages:
> gnome-accessibility
>The following packages will be REMOVED:
> epiphany-browser* epiphany-browser-data* epiphany-extensions* epiphany-extensions-more*
> epiphany-gecko* galeon* gnome* konqueror*
>The following packages will be upgraded:
> gnome-core gnome-desktop-environment
>2 upgraded, 0 newly installed, 8 to remove and 435 not upgraded.
>Need to get 0B/31.0kB of archives.
>After this operation, 23.3MB disk space will be freed.
>Do you want to continue [Y/n]?
We can clearly see here that your removals triggered the removal of the "gnome" metapackage. This is almost certainly what triggered the large list of "automatically installed and no longer required packages"




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum