packages: install unpinned
Metadata
Current evaluation
Merged unpinned package installation to prevent apt downgrades when pinned versions are unsatisfiable. Removes auto-marking, passes only requested packages to apt, and collects post-install versions for backwards compatibility. Resolves CRAFT-1187.
Suggested action: —
No scores available.
Issue body
Collect installed package versions after the installation.
This allows us to collect the real version whilst avoiding a bug
in apt where it would downgrade or remove a package in cases where
the pinned version cannot be satisfied.
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
This would no longer auto mark packages (not useful anymore and --destructive-mode is destructive).
Only the requested packages are passed on to apt install with a best effort of collecting what dependencies would be installed or how virtual packages would be resolved to construct the most backwards compatible result at the end of the process.
CRAFT-1187
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged unpinned package installation to prevent apt downgrades when pinned versions are unsatisfiable. Removes auto-marking, passes only requested packages to apt, and collects post-install versions for backwards compatibility. Resolves CRAFT-1187. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3915 legacy: install unpinned build packages | snapcraft | merged | Merged a craft-parts backport that collects installed package versions post-installation. This resolves an apt bug causing unwanted downgrades or removals when pinned versions cannot be satisfied. Approved, passed CI, and maintained coverage. |