Charmcraft pack crashed with `cannot install all requested build packages`
Metadata
Current evaluation
Closed as a non-issue. The crash resulted from a temporary Ubuntu archive 404 error. Running clean merely coincided with a successful retry. Maintainer closed the report, advising re-opening if the transient failure recurs.
Suggested action: —
No scores available.
Issue body
I got this error message, went away after charmcraft clean. Curiously I had never packed this specific charm before, so I'm not sure what was there to be cleaned...
```bash
❯ charmcraft pack
Packing the charm
Parts processing error: Cannot install all requested build packages: libexpat1-dev=2.2.9-1build1, libpytho
n3-dev=3.8.2-0ubuntu2, libpython3.8=3.8.10-0ubuntu1~20.04.2, libpython3.8-dev=3.8.10-0ubuntu1~20.04.2, pyt
hon-pip-whl=20.0.2-5ubuntu1.6, python3-dev=3.8.2-0ubuntu2, python3-distutils=3.8.10-0ubuntu1~20.04, python
3-lib2to3=3.8.10-0ubuntu1~20.04, python3-pip=20.0.2-5ubuntu1.6, python3-pkg-resources=45.2.0-1, python3-se
tuptools=45.2.0-1, python3-venv=3.8.2-0ubuntu2, python3-wheel=0.34.2-1, python3.8-dev=3.8.10-0ubuntu1~20.0
4.2, python3.8-venv=3.8.10-0ubuntu1~20.04.2, zlib1g-dev=1:1.2.11.dfsg-2ubuntu1.2
Full execution log: '/tmp/charmcraft.log'
Failed to build charm for bases index '0'.
Full execution log: '/home/pietro/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220414-114332.0
63980.log'
❯ charmcraft clean; charmcraft pack
Cleaned project 'traefik-mock'.
Packing the charm
Created 'traefik-mock_ubuntu-20.04-amd64.charm'.
Charms packed:
traefik-mock_ubuntu-20.04-amd64.charm
```
[charmcraft-20220414-114332.063980.log](https://github.com/canonical/charmcraft/files/8488176/charmcraft-20220414-114332.063980.log)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as a non-issue. The crash resulted from a temporary Ubuntu archive 404 error. Running clean merely coincided with a successful retry. Maintainer closed the report, advising re-opening if the transient failure recurs. | |
| qwen/qwen3.6-35b-a3b | — | — | Rejected and closed as a temporary Ubuntu archive network failure causing apt package installation errors. The clean command was coincidental. Issue deemed out of charmcraft's control with no code changes. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as a temporary Ubuntu archive network glitch causing apt failures. The clean command was coincidental. Issue deemed out of charmcraft's control; maintainers advised reopening if reproducible with consecutive logs. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as a temporary Ubuntu archive network glitch causing apt 404 errors. The clean command was coincidental. Maintainer advised reopening if the issue recurs with consecutive logs. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1747 Failed to run the build script for part 'charm' | charmcraft | closed | Build script failure during charmcraft pack was resolved. The issue was closed after the maintainer acknowledged the report and merged the fix in PR #1751. | |
| #738 Crash with `charmcraft pack` | charmcraft | closed | Closed. The crash stemmed from outdated setuptools and pip failing to build jinja2. Resolved via a workaround specifying newer setuptools and pip in charmcraft.yaml. Maintainers attributed the error to upstream packaging and pip limitations. |