#752186 apt: Conflicting dist-upgrade solution

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
"Nelson A. de Oliveira"
Date:
2014-06-20 18:33:06 UTC
Severity:
normal
#752186#5
Date:
2014-06-20 18:30:31 UTC
From:
To:
Hi!

I am seeing some conflicting result from "apt-get dist-upgrade" lately:

=====
# LC_ALL=C apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libcryptsetup4 systemd
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
  libcryptsetup4 libsystemd-daemon0 systemd
The following packages have been kept back:
  policykit-1 udisks2
The following packages will be upgraded:
  acpi-fakekey acpi-support acpi-support-base dictionaries-common fuse
  gdbserver libfuse2 sisu vim vim-common vim-runtime
11 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 9589 kB of archives.
After this operation, 5693 kB of additional disk space will be used.
Do you want to continue? [Y/n]
=====

See that it says that systemd is no longer needed (and suggests to use
apt-get autoremove) and at the same time it says that systemd will be
installed.

Note that I don't have systemd installed:

=====
$ LC_ALL=C apt-cache policy systemd
systemd:
  Installed: (none)
  Candidate: 204-10
  Version table:
     208-1 0
        100 http://http.debian.net/debian/ experimental/main amd64 Packages
     204-10 0
        500 http://http.debian.net/debian/ unstable/main amd64 Packages
=====

If it isn't installed it shouldn't say that it's no longer required.
I also can't see a dependency here that needs systemd installed.

Another strange thing:

=====
# apt-get clean


# LC_ALL=C apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libcryptsetup4 systemd
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
  libcryptsetup4 libsystemd-daemon0 systemd
The following packages have been kept back:
  policykit-1 udisks2
The following packages will be upgraded:
  acpi-fakekey acpi-support acpi-support-base dictionaries-common fuse gdbserver libfuse2 sisu vim vim-common vim-runtime
11 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 9589 kB of archives.
After this operation, 5693 kB of additional disk space will be used.
Do you want to continue? [Y/n] ^C


# LC_ALL=C apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libsystemd-daemon0
The following packages have been kept back:
  policykit-1 udisks2
The following packages will be upgraded:
  acpi-fakekey acpi-support acpi-support-base dictionaries-common fuse gdbserver libfuse2 sisu vim vim-common vim-runtime
11 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 8353 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Do you want to continue? [Y/n]
=====

Note that I did a clean, dist-upgrade, Ctrl+C and another dist-upgrade
run. It didn't say anything about systemd this time.

It's fully reproducible this strange result with systemd.

Thank you!

Best regards,
Nelson