packages: install unpinned
Metadata
Current evaluation
Merged #245 via 3d247048: apt now installs unpinned package names and collects actual installed versions afterward, avoiding downgrades or removals when pins cannot be satisfied.
Resolution: closed resolved
Reason: PR #245 was merged in commit 3d247048, with implementation commit 8e5fe24b. It installs unpinned packages and then records resolved versions, resolving CRAFT-1187.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #245 via 3d247048: apt now installs unpinned package names and collects actual installed versions afterward, avoiding downgrades or removals when pins cannot be satisfied. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #245: package installation now requests unpinned versions and records actual installed versions afterward, preventing apt downgrades or removals when pins cannot be satisfied. | |
| 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 PR #3915 as commit 3a54031cb, changing legacy build-package installation to use unpinned packages and capture installed versions, avoiding apt downgrades or removals. |