Removing a meta package shouldn't mark any of it's deps/recommends for autoremove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Opinion
|
Undecided
|
Unassigned | ||
ubuntu-meta (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ex.
~$ 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-
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.
librhythmbox-
rhythmbox-
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
ubuntu-desktop
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
Abort.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt 1.2.10ubuntu1
ProcVersionSign
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)
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.