[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-16 Thread Harald van Dijk
Huh, so you can, thanks. Confirming that this works too, and agreed that that looks like it should cover all cases. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1904195 Title: apt cancels holds on

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
My understanding of pinning is that that can be used to specify which version to use, which is what I use it for already, but not to force no version to be used. Agreed that this is not a common use case, so low prio and not patching it till it's fixed upstream makes sense, but since it's something

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
You're right btw that it's a dpkg bug, but it's a bit more subtle. The cleanup that dpkg performs after installation is meant to preserve the hold state for non-installed packages. This is handled by the pkg_is_informative function, which classifies everything with "pkg->want != PKG_WANT_UNKNOWN" a

[Bug 1904195] Re: apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
Whether it's a bug in apt or in something used by apt doesn't really make a difference from an end user perspective. Can this bug be reopened as a dpkg bug, then, or should I report that as a new bug? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscrib

[Bug 1904195] [NEW] apt cancels holds on uninstalled packages

2020-11-13 Thread Harald van Dijk
Public bug reported: When a package is not installed and apt dist-upgrade offers to install it, if this is not desired, it is possible to hold the package using multiple tools, which puts it in a state documented in dpkg.1 as: hold A package marked to be on hold is kept on the s