Removing a meta package shouldn't mark any of it's deps/recommends for autoremove

Bug #1583591 reported by Doug McMahon on 2016-05-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
ubuntu-meta (Ubuntu)

Bug Description

~$ sudo apt autoremove
[sudo] password for doug:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

doug@doug-HP-Pavilion-Notebook:~$ sudo apt remove ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apturl apturl-common cheese gir1.2-rb-3.0 gir1.2-secret-1 gnome-video-effects gstreamer1.0-alsa
  gstreamer1.0-plugins-base-apps libdmapsharing-3.0-2 libexiv2-14 libgexiv2-2 libgpod-common libgpod4 libraw15
  librhythmbox-core9 libsgutils2-2 media-player-info nautilus-share python3-mako rhythmbox rhythmbox-data
  rhythmbox-plugin-zeitgeist rhythmbox-plugins shotwell shotwell-common snapd squashfs-tools ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 46.1 kB disk space will be freed.
Do you want to continue? [Y/n] n

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt 1.2.10ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 19 08:35:52 2016
InstallationDate: Installed on 2016-04-26 (22 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Doug McMahon (mc3man) wrote :
description: updated
David Kalnischkies (donkult) wrote :

This is an explicit feature – apt will mark the packages as manual if the metapackage is removed as a consequence of another package (e.g. you remove the browser the metapackage depends on, the office-suite will be marked as manual to prevent it to be removed automatically just because you don't like the browser).

If you request the removal of the metapackage explicitly through, the dependencies will not be marked. You can do that manually as you see fit. This is done so that people who install a suite of packages via a metapackage can get right of this suite in (roughly) the same way they installed it.

Changed in apt (Ubuntu):
status: New → Opinion
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers