Using the test in debian bug 793360. $ sudo apt-mark showmanual >before $ sudo apt-get -o Debug::pkgDepCache::AutoInstall=true install ubuntu-standard [...] $ sudo apt-mark showmanual >after $ diff -u before after --- before 2017-10-04 11:36:41.967980781 -0700 +++ after 2017-10-04 11:37:47.615979019 -0700 @@ -119,6 +119,7 @@ tar tzdata ubuntu-keyring +ubuntu-standard util-linux vim xz-utils
Only ubuntu-standard was marked as manually installed and none of its dependencies were. ubuntu-standard has a section of "metapackages" and some of my apt-config follows: # apt-config dump | grep Sections APT::Never-MarkAuto-Sections ""; APT::Never-MarkAuto-Sections:: "metapackages"; APT::Never-MarkAuto-Sections:: "contrib/metapackages"; APT::Never-MarkAuto-Sections:: "non-free/metapackages"; APT::Never-MarkAuto-Sections:: "restricted/metapackages"; APT::Never-MarkAuto-Sections:: "universe/metapackages"; APT::Never-MarkAuto-Sections:: "multiverse/metapackages"; APT::Move-Autobit-Sections ""; APT::Move-Autobit-Sections:: "oldlibs"; APT::Move-Autobit-Sections:: "contrib/oldlibs"; APT::Move-Autobit-Sections:: "non-free/oldlibs"; APT::Move-Autobit-Sections:: "restricted/oldlibs"; APT::Move-Autobit-Sections:: "universe/oldlibs"; APT::Move-Autobit-Sections:: "multiverse/oldlibs"; -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1721364 Title: Never-MarkAuto-Sections not working Status in apt package in Ubuntu: New Bug description: "apt-get --purge autoremove ubuntu-standard" wants to remove a lot more packages than just ubuntu-standard. Bug 1479207 is a previous version of this. Using apt version 1.5 on Artful Aardvark: The following packages will be REMOVED: accountsservice* apparmor* bind9-host* busybox-static* command-not-found* command-not-found-data* cpio* cron* dbus* dh-python* distro-info-data* dmidecode* dnsutils* friendly-recovery* ftp* fuse* geoip-database* gettext-base* gir1.2-glib-2.0* hdparm* info* iptables* iputils-tracepath* irqbalance* iso-codes* krb5-locales* language-selector-common* libaccountsservice0*... This does work correctly on Trusty with apt version 1.0.1ubuntu2.17. Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: ubuntu-standard* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 61.4 kB disk space will be freed. Do you want to continue? [Y/n] n To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1721364/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

