I think I know how to reproduce: - install minimal Debian unstable (a container or chroot should do) - boot it or chroot to it - configure networking - enter aptitude and install a package with a huge list of dependencies (e.g. owncloud) - leave aptitude - enter aptitude - mark "owncloud" to be removed (using "_") - hit "g" once to get the list of packages to be removed - mark "php5" to be kept (using "+") - press q
Now the dependencies of php5 should have lost their "automatically installed" flag. Maybe you already knew, but I never saw it happening live before. Regards Harri