Stage-packages fails at unpack_stage_packages when installing some packages
Metadata
Current evaluation
Fixed by integrating craft-parts PR #215. The unpack_stage_packages ValueError during rockcraft pack when installing packages like ca-certificates is resolved.
Suggested action: —
No scores available.
Issue body
```yaml
name: test
version: 1.0
base: ubuntu:20.04
parts:
part1:
plugin: nil
stage-packages:
- ca-certificates
```
this example _rockcraft.yaml_ fails with the following error while executing `rockcraft pack` (in the `unpack_stage_packages` function):
```sh
ValueError: '/root/parts/part1/install/etc/ssl/openssl.cnf' does not start with '/root/parts/part1/install/usr/lib/ssl'
```
See the full log [rockcraft-20220422-181812.655447.log](https://github.com/canonical/rockcraft/files/8542481/rockcraft-20220422-181812.655447.log).
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215. The unpack_stage_packages ValueError during rockcraft pack when installing packages like ca-certificates is resolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215, resolving the path mismatch error in unpack_stage_packages that occurred during ca-certificates installation. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by integrating craft-parts PR #215, which resolves the path validation error in unpack_stage_packages that caused rockcraft pack to fail when installing certain packages. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed by integrating craft-parts PR #215, which resolves the ValueError in unpack_stage_packages triggered when installing packages like ca-certificates. Issue closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed by integrating canonical/craft-parts pull request #215, which resolves the ValueError in unpack_stage_packages during package installation. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1005 rockcraft needs to update apt sources before installing build-packages | rockcraft | open | Rockcraft fails to install build-packages (e.g. openjdk-25-jdk-headless) because craft-parts marks packages before refreshing the apt cache. Maintainers triaged it as an upstream craft-parts bug; fix merged in craft-parts#1468, now awaiting dependency bump/release. |