Bug#1135079: apt: with APT::Get::Remove, no way to distinguish a real package that becomes virtual
Vincent Lefevre <[email protected]> Mon, 27 Apr 2026 12:47:49 +0200
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <20260427104749.GA817703__14920.418062114$1777286967$gmane$org@qaa.vinc17.org> |
Package: apt Version: 3.2.0 Severity: wishlist The --no-remove apt-get option (configuration item APT::Get::Remove) is useful to prevent packages from being removed, e.g. due to temporary unsatisfied dependencies. However, it is sometimes safe to remove a package, e.g. because a package becomes virtual, with the dependency still statisfies by the upgrade. For instance, when the dvidvi package is installed, apt-get install --no-remove texlive-binaries to upgrade texlive-binaries from 2025.20250727.75242+ds-5+b2 to 2026.20260303.78225+ds-3 fails because the dvidvi real package will be removed, while dvidvi will be provided by texlive-binaries in its new version: Package: texlive-binaries Version: 2026.20260303.78225+ds-3 Replaces: dvidvi, [...] Provides: dvidvi, [...] Conflicts: dvidvi, [...] -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)