[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#973260: apt --mark-auto sets already installed package to manually installed



Package: apt
Version: 2.2.4
Severity: normal


Dear maintainer,

I think stumbled upon the same issue, with a simpler example,
which is easier to debug.

   * What led up to the situation?

A package, which was already automatically installed, shall be
installed again as automatically installed.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

$ apt-get install --mark-auto hello

(The package name does not matter.)

   * What was the outcome of this action?

[...]
hello is already the newest version (2.10-2).
hello set to manually installed.
[...]

   * What outcome did you expect instead?

[...]
hello is already the newest version (2.10-2).
[...]

Note: "apt install --mark-auto hello" does work as expected, if the
package was not installed before.


I want to call apt from Ansible playbooks. Ansible playbooks shall be
idempotent. The easiest way to create an idempotent playbook is to
only use idempotent commands. This is why I would like apt to be
idempotent.

Best regards,
Lars Dröge

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: